Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit c51fbcb

Browse files
nahakiolepetebacondarwin
authored andcommitted
docs(error/modulerr): add additional debugging help
This simple tip can help to diagnose the error. Closes #12958
1 parent 796f7ab commit c51fbcb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/content/error/$injector/modulerr.ngdoc

+4-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
This error occurs when a module fails to load due to some exception. The error
77
message above should provide additional context.
88

9+
A common reason why the module fails to load is that you've forgotten to
10+
include the file with the defined module or that the file couldn't be loaded.
11+
912
### Using `ngRoute`
1013

1114
In AngularJS `1.2.0` and later, `ngRoute` has been moved to its own module.
@@ -24,4 +27,4 @@ angular.module('ng').filter('tel', function (){});
2427

2528
Instead create your own module and add it as a dependency to your application's top-level module.
2629
See [#9692](https://github.com/angular/angular.js/issues/9692) and
27-
[#7709](https://github.com/angular/angular.js/issues/7709) for more information
30+
[#7709](https://github.com/angular/angular.js/issues/7709) for more information

0 commit comments

Comments
 (0)