Answer the question
In order to leave comments, you need to log in
Loading data + filtering by them in AngularJS. How to reset the controller?
Good afternoon!
Tell me how to properly load the goods and filter by them.
Separately, everything works, but together there is a problem.
in the controller I output it like this:
ng-repeat='good in goods | limitTo:rowLimit | filter:searchText'
ng-click="searchText.priceType = 'Эконом'"
$scope.rowLimit = 5;
ng-click="rowLimit = rowLimit + 2"
ng-click="searchText.priceType = 'Эконом'; rowLimit = 500;",
but that doesn't work. Apparently you need to somehow reboot the controller. Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question