Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $scope.$watch('cities', function(){
- alert("fire");
- }, true);
- $scope.$watchCollection('[cities]', function(){
- alert("fire")
- }, true);
- $scope.cityList = [cities];
- $scope.$watchCollection('cityList', function () { alert('fire'); });
- // As a response to some event:
- $scope.cityList[0] = newCities;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement