From e3371d7c5368a060b3422b842df8690fa65c53b9 Mon Sep 17 00:00:00 2001 From: Pete Bacon Darwin Date: Thu, 5 Sep 2013 12:18:56 +0100 Subject: docs(angular.bootstrap): clarify modules parameter It was not clear what you could pass to specify modules to load in the `module` parameter of this function. The `modules` parameter takes an array. The main case is to provide a String, which is the name of a "predefined" angular module. The side cases are to provide a Function (or an annotated function in the form of an Array), which will be invoked by the injector as a run block. It is not possible to "define" new modules via this parameter. Closes #3692 --- src/Angular.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/Angular.js b/src/Angular.js index 475c0585..298d6406 100644 --- a/src/Angular.js +++ b/src/Angular.js @@ -1017,7 +1017,9 @@ function angularInit(element, bootstrap) { * They must use {@link api/ng.directive:ngApp ngApp}. * * @param {Element} element DOM element which is the root of angular application. - * @param {Array=} modules an array of module declarations. See: {@link angular.module modules} + * @param {Array=} modules an array of modules to load into the application. + * Each item in the array should be the name of a predefined module or a (DI annotated) + * function that will be invoked by the injector as a run block. See: {@link angular.module modules} * @returns {AUTO.$injector} Returns the newly created injector for this app. */ function bootstrap(element, modules) { -- cgit v1.2.3