From 81f62905168fe653696f18905b9113e7c8008d4b Mon Sep 17 00:00:00 2001 From: Sequoia McDowell Date: Mon, 19 Aug 2013 19:57:30 -0400 Subject: [PATCH] augmenting description of angular.module 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. --- src/loader.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/loader.js b/src/loader.js index b28ccee28a2f..ade06c46a0c5 100644 --- a/src/loader.js +++ b/src/loader.js @@ -23,9 +23,12 @@ 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