O'Reilly logo
  • hao wang thinks this is interesting:

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.


Cover of AngularJS: Up and Running