View source Improve this doc

angular.bootstrap
API in module ng

Description

Use this function to manually start up angular application.

See: Bootstrap

Note that ngScenario-based end-to-end tests cannot use this function to bootstrap manually. They must use ngApp.

Usage

angular.bootstrap(element[, modules]);

Parameters

ParamTypeDetails
elementElement

DOM element which is the root of angular application.

modules
(optional)
Array<String|Function|Array>

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: modules

Returns

AUTO.$injector

Returns the newly created injector for this app.