1.

How Angular Js Integrates With Html?

Answer»

ANGULARJS being a pure javaScript based LIBRARY INTEGRATES easily with HTML.
Step 1 − Include angularjs javascript libray in the html page
<head> src = “http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js&#8221;> </head>
Step 2 − Point to AngularJS app
Next we tell what part of the HTML CONTAINS the AngularJS app. This done by adding the ng-app attribute to the root HTML element of the AngularJS app. You can either add it to html element or body element as shown below:
<body ng-app = “myapp”> </body>

AngularJS being a pure javaScript based library integrates easily with HTML.
Step 1 − Include angularjs javascript libray in the html page
<head> src = “http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js&#8221;> </head>
Step 2 − Point to AngularJS app
Next we tell what part of the HTML contains the AngularJS app. This done by adding the ng-app attribute to the root HTML element of the AngularJS app. You can either add it to html element or body element as shown below:
<body ng-app = “myapp”> </body>



Discussion

No Comment Found