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
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. | |