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.

From

Cover of AngularJS: Up and Running

Note

定义与使用模块的常见问题,1,定义模块时没有指定第二个参数。2,使用模块时,定义这个模块的文件没有事先加载进入。