Javascript 51
AngularJS $rootElement Example
AngularJS application module can be defined using ngApp directive. The element where the ngApp directive used is also known as root element.This element can be accessed using $rootElement object provided by AngularJS. In this Demo, […]
AngularJS Cookie Example
AngularJS framework provides cookie module ngCookies package.Also it provides cookieStore object with get(),put() and remove() method. The cookie feature is available in angular-cookies.min.js file. In this demo, "We will demonstrate cookie and cookieStore use in simple example". <!DOCTYPE html> <html […]
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 […]