diff options
| author | Sequoia McDowell | 2013-08-19 19:57:30 -0400 | 
|---|---|---|
| committer | Igor Minar | 2013-08-21 02:20:56 -0700 | 
| commit | 411c84bf2cb52a0dbac75dcade2f82d7768d163d (patch) | |
| tree | 74c12018b6d63c5bb4371f421c30b81906c58ef4 /src/loader.js | |
| parent | c61bb52c95013fdb2e4073c7ad8c28ee29bca34f (diff) | |
| download | angular.js-411c84bf2cb52a0dbac75dcade2f82d7768d163d.tar.bz2 | |
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 #3666
Diffstat (limited to 'src/loader.js')
| -rw-r--r-- | src/loader.js | 7 | 
1 files changed, 5 insertions, 2 deletions
| diff --git a/src/loader.js b/src/loader.js index b28ccee2..be9bc245 100644 --- a/src/loader.js +++ b/src/loader.js @@ -23,10 +23,13 @@ function setupModuleLoader(window) {       * @name angular.module       * @description       * -     * The `angular.module` is a global place for creating and registering Angular modules. All -     * modules (angular core or 3rd party) that should be available to an application must be +     * The `angular.module` is a global place for creating, registering and retrieving Angular modules. +     * All modules (angular core or 3rd party) that should be available to an application must be       * registered using this mechanism.       * +     * When passed two or more arguments, a new module is created.  If passed only one argument, an +     * existing module (the name passed as the first argument to `module`) is retrieved. +     *       *       * # Module       * | 
