AngularJS $watch $watchCollection and $watchGroup Method
AngularJS 1.3 release candidate provides $watch(), $watchCollection() and $watchGroup() method. These methods are for watching changes of scope variables.Each of these methods has callback function which gets called when the watching properties are changed. $watch method is for […]
Beginning AngularJS Animation
AngularJS provides animation service to control the animation in an AngularJS application. The package name is ngAnimate present inside ng module. It can be used by including angular-resource.min.js script file. In this Demo, "We will only get started with AngularJS animation with really simple dumb example". AngularJS provides $animate object to be get injected to […]
AngularJS Template Cache PUT & GET Example
AngularJS provides $tempateCache module for caching templates. This module has put() and get() methods to save and retrieve HTML template from the cache. In this Demo, "We will create a simple directive which uses the template cache to load the template […]
Using AngularJS $parse Service
AngularJS provides $parse service to evaluate expression. In a template AngularJS expression are presented in {{ }}.AngularJS uses $parse under the hood to compile link and display the value in the browser. $parse() method returns a function for the given expression context.The value of the context can be changes using assign() method. In this demo, "We […]