1.

How can you integrate AngularJS with HTML?

Answer»

We can integrate AngularJS in the HTML page by first binding the AngularJS library to the HTML page using the <script> tag in the HTML head section and then bootstrapping the AngularJS application using the ng-app directive as shown below.

<html> <head> <script src = "HTTPS://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"></script> <!--Other LIBRARIES--> </head> <!--ng-app attribute to bootstrap AngularJS application--> <body ng-app = "myApp"> <!--Web page elements--> </body></html>


Discussion

No Comment Found