I\'m new with angularjs and I\'m having some problems with the controllers. When I try to put something in the angular.module I only can specify the name, if I put something in
This statement
angular.module('name',[])
creates a module, whereas this statement loads the module
angular.module('name')
The first statement should be used once to define the module with dependencies. After that the second format should be used.
If you use the first syntax again this leads to redefining of module and existing registration on the module are lost.