ANGULARJS allows us to declare a module using the Angular.module () method, which accepts two parameters,
The first is the name of the module, and the second is a dependency list, which is a list of objects that can be injected into the module.
Angular.module (' myApp ', []);//Declaration module (this method is equivalent to the setter method of the Angularjs module, which is used to define the module.) )
1) The first parameter: name is the module, string variable.
2) The second parameter: requires contains a list of string variables, each of which is a module name, which relies on these modules and relies on the injector to pre-load before the module is loaded.
Angular.module (' myApp ');//This method is to get the application (referencing the Nyapp module) (this method is equivalent to the Angularjs module's Getter method, which is used to define the module.) )
AngularJS Tutorial, two modules