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:
- Check if the file in which this module is define has been loaded (via <script src=”…”> for exemple);
- Check if the name of the module is declared correctly in: creation and dependencies files;
See also: https://docs.angularjs.org/error/$injector/nomod