Arquivo da categoria: AngularJS

A commum Angular error: “Module X is not available!”

This error often occurs when you declare a dependency on a module that Angular can’t locate it, whether by wrong module name or the module (JS file) not loaded.

Modulo “X” is not available!

These are the steps you must check if you got the error:

  1. Check if the file in which this module is define has been loaded (via <script src=”…”> for exemple);
  2. Check if the name of the module is declared correctly in: creation and dependencies files;

See also: https://docs.angularjs.org/error/$injector/nomod

Anúncios