Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 411c84b

Browse files
SequoiaIgorMinar
authored andcommitted
docs(angular.module): improve docs
it wasn't clear before that if given the same name a second time this method RETRIEVES an EXISTING module. Not even sure if my description is accurate, hoping someone will either confirm and merge or clear it up. Closes angular#3666
1 parent c61bb52 commit 411c84b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/loader.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,13 @@ function setupModuleLoader(window) {
2323
* @name angular.module
2424
* @description
2525
*
26-
* The `angular.module` is a global place for creating and registering Angular modules. All
27-
* modules (angular core or 3rd party) that should be available to an application must be
26+
* The `angular.module` is a global place for creating, registering and retrieving Angular modules.
27+
* All modules (angular core or 3rd party) that should be available to an application must be
2828
* registered using this mechanism.
2929
*
30+
* When passed two or more arguments, a new module is created. If passed only one argument, an
31+
* existing module (the name passed as the first argument to `module`) is retrieved.
32+
*
3033
*
3134
* # Module
3235
*

0 commit comments

Comments
 (0)