Good day to all .... there is a standard Angular controller
var phonecatApp = angular.module('phonecatApp', []); phonecatApp.controller('PhoneListCtrl', function($scope){ $scope.name = ""; $scope.mod = ""; $scope.cena = ""; $scope.maysters = []; $scope.addToList = function() { this.maysters.push({ name: this.name, mod: this.mod, cena: this.cena }) } }); The mayster array contains an archive of orders ... the AddToList function adds the order to the archive
1. How can I let the administrator add a new array with the archive and a function to it (without using the code, via input)?
2. How to display the created array on the screen?
ng-clickandng-repeat. - Stepan Kasyanenko