From 1af47a2d5d18abb677d31bd6c70de44959f3b290 Mon Sep 17 00:00:00 2001 From: Robin Glauser Date: Sun, 27 Sep 2015 13:30:34 +0200 Subject: [PATCH] docs(error/modulerr): Improving description of $injector:modulerr This simple tip would have helped me, because I was confused by the error message about the missing routing module. --- docs/content/error/$injector/modulerr.ngdoc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/content/error/$injector/modulerr.ngdoc b/docs/content/error/$injector/modulerr.ngdoc index e957b64b1a01..6147f7b4a595 100644 --- a/docs/content/error/$injector/modulerr.ngdoc +++ b/docs/content/error/$injector/modulerr.ngdoc @@ -6,6 +6,9 @@ This error occurs when a module fails to load due to some exception. The error message above should provide additional context. +A common reasons why the module fails to load is that you've forgotten to +include the file with the defined module or that the file couldn't be loaded. + ### Using `ngRoute` 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 (){}); Instead create your own module and add it as a dependency to your application's top-level module. See [#9692](https://github.com/angular/angular.js/issues/9692) and -[#7709](https://github.com/angular/angular.js/issues/7709) for more information \ No newline at end of file +[#7709](https://github.com/angular/angular.js/issues/7709) for more information