There are two common mistakes to watch out for:
- Trying to define a module, but forgetting to pass in the second argument. This would cause AngularJS to try to look up a module instead of defining one, and we would get an error (“No module found”).
- Trying to load a module from another file to modify, but the file that defines the module has not been loaded first. Make sure the file that defines the module is loaded first in your HTML before you try to use it.
Share this highlighthttp://www.safaribooksonline.com/a/angularjs-up-and/30971/