diff options
| author | Peter Bacon Darwin | 2014-02-16 22:02:31 +0000 |
|---|---|---|
| committer | Peter Bacon Darwin | 2014-02-16 22:02:41 +0000 |
| commit | 33e1bdc543bcb7875dcc004d487333393670ed2d (patch) | |
| tree | 7ff1f564ab486f049b7e9e5ad946a6a88bb651b6 /docs/content/error/injector/nomod.ngdoc | |
| parent | 49f90e559ed412402ad7444bc2db2bc1c182ddf5 (diff) | |
| download | angular.js-33e1bdc543bcb7875dcc004d487333393670ed2d.tar.bz2 | |
chore(errors): rename folders to match namespaces
Diffstat (limited to 'docs/content/error/injector/nomod.ngdoc')
| -rw-r--r-- | docs/content/error/injector/nomod.ngdoc | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/docs/content/error/injector/nomod.ngdoc b/docs/content/error/injector/nomod.ngdoc deleted file mode 100644 index 5f8fb1e6..00000000 --- a/docs/content/error/injector/nomod.ngdoc +++ /dev/null @@ -1,26 +0,0 @@ -@ngdoc error -@name $injector:nomod -@fullName Module Unavailable -@description - -This error occurs when trying to "re-open" a module that has not yet been defined. - -To define a new module, call {@link angular.module angular.module} with a name -and an array of dependent modules, like so: - -``` -// When defining a module with no module dependencies, -// the requires array should be defined and empty. -var myApp = angular.module('myApp', []); -``` - -To retrieve a reference to the same module for further configuration, call -`angular.module` without the `requires` array. - -``` -var myApp = angular.module('myApp'); -``` - -Calling `angular.module` without the `requires` array when the module has not yet -been defined causes this error to be thrown. To fix it, define your module with -a name and an empty array, as in the first example above.
\ No newline at end of file |
