V
V
Vasyl Pylypiv2015-07-10 15:30:58
Angular
Vasyl Pylypiv, 2015-07-10 15:30:58

Why is data not saved via push?

I created a product list and a customer list. When the form is filled in and the button is clicked, the data should update, but this does not happen. Where is the mistake ?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Valentin Dubrovsky, 2015-07-10
@matroskin13

$scope.products.push()($scope.newGood); - what is it anyway? javascript.ru/Array/push
That is, it should be $scope.products.push($scope.newGood)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question