1.

AngularJS Modules

Answer» ANGULARJS MODULES
Here we will KNOW what is AngularJS Modules and why we use and how we will use this. An AngularJS modules defines and application. There are many parts which are contains in module in application. Module also contains the application controllers. And Controllers always belong to a module.

To create a module we use AngularJS function which is angular.module

Now below example will define how to create a Module


AngularJS Module
In above "myApp" parameter refers to an HTML element in which application will run.

We can add Controllers, DIRECTIVES, filters and many more in AngularJS application.


Discussion

No Comment Found