Angular | Watch an object or an array

Angular | Watch an object or an array

9 years ago, March 17, 2015
Reading time: 1 mins

 

$scope.$watch('objectOrArray',function(newVal, oldVal){
// Do Something

},true);

 

Previous
Learning ECMAScript 6 ECMAScript2015 – Arrows
Next
How to fix screen resolution problem of certain applications in Windows 8
© 2024 Anil Maharjan