AngularJS Modules
AngularJS Modules
AngularJS Modules are used to define an application. It is a container for application controllers and different parts of the application. The easiest way of creating an angular module is by using AngularJs function:-
Defining AngularJS Module:-
angular.module
In other words, we can define it as:-
var my_app = angular.module("myApp", [ ])
For your Information:-
The [ ] parameter is used to define dependent modules and without it, you are just retrieving an old one.