From 92af30ce6e99676c71c85bd08962b68629564908 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Sun, 15 Jan 2012 23:28:10 -0800 Subject: docs(*): various doc fixes --- src/loader.js | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) (limited to 'src/loader.js') diff --git a/src/loader.js b/src/loader.js index e6662aae..69ae024f 100644 --- a/src/loader.js +++ b/src/loader.js @@ -24,38 +24,43 @@ function setupModuleLoader(window) { * @description * * The `angular.module` is a global place for registering angular modules. All modules - * (angular core or 3rd party) that should be available to an application must be registered using this mechanism. + * (angular core or 3rd party) that should be available to an application must be registered + * using this mechanism. + * * * # Module * - * A module is a collocation of services, directives, filters, and configure information. Module is used to configure the, - * {@link angular.module.AUTO.$injector $injector}. + * A module is a collocation of services, directives, filters, and configure information. Module + * is used to configure the {@link angular.module.AUTO.$injector $injector}. * *
* // Create a new module
* var myModule = angular.module('myModule', []);
*
- * // configure a new service
+ * // register a new service
* myModule.value('appName', 'MyCoolApp');
*
* // configure existing services inside initialization blocks.
- * myModule.init(function($locationProvider) {
+ * myModule.config(function($locationProvider) {
* // Configure existing providers
- * $locationProvider.hashPrefix = '!';
+ * $locationProvider.hashPrefix('!');
* });
*
*
- * Then you can load your module like this:
+ * Then you can create an injector and load your modules like this:
*
*
* var injector = angular.injector(['ng', 'MyModule'])
*
*
+ * However it's more likely that you'll just use {@link angular.directive.ng:app ng:app} or
+ * {@link angular.bootstrap} to simplify this process for you.
+ *
* @param {!string} name The name of the module to create or retrieve.
* @param {Array.