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, "
We will see an example of using $rootElement to change the background color of the body element".Below code shows the us...
Published on November 07, 2014 10:31