javascript - $scope doesnt update on change -
i trying update view on button click, doing wrong. console showing array want be, ng-repeat list not updating. html: <body ng-app="myapp"> <div layout="row" ng-controller="lekovicontroller"> <md-content md-scroll-y flex class="lista_lekova_layout"> <md-list> <md-list-item ng-repeat="lek in lekovi | filter:search"> <p ng-click="prikaz(lek)">{{lek.naziv}}</p> </md-list-item> </md-list> <button ng-click="loadmore()">ucitaj jos</button> </md-content> </div> </body> js: var app = angular.module('myapp', [ 'lbservices', 'ui.router', 'ngresource', 'ngmaterial', 'ngmdicons', 'ngroute' ]); app.controller('lekovicontroller', ['$scope', ...