AngularJs $scope doesn't update after a GET request on a factory
问题 I have been trying AngularJS for a experimental project and I came along with this problem. In my html I want to display a list of items Index.html <h1>Some list</h1> <div ng-controller="datlist"> <div ng-repeat="item in items"> <div>Item description: {{item.description}}</div> <div>Item name: {{item.name}}</div> </div> </div> At first I was using a simple controller to get the information and update the view just using this: controllers.js (original) function datlist($scope,$http){ $http(