Refresh of scope after remote change to data
问题 In my controller for a mpbile app based on Angular1 is have (for example) the following function: var getItem = function() { // Initialize $scope $scope.url = "(url to get my data)"; $http.get($scope.url).success(function(data) { $scope.itemDetails = data; // get data from json }); }; getItem(); and this works just fine.. with one problem.. it doesnt update. Even if I switch pages and come back, if the scope hasnt changed, it doesnt reflect new data in the scope. So, i built in an $interval