-
Notifications
You must be signed in to change notification settings - Fork 1
bootstrap
Rob edited this page Jan 19, 2015
·
4 revisions
The bootstrap function is used to manually bootstrap your application (instead of having ng-app on an element in your HTML).
import {bootstrap} from 'core/core.js';
import BaseComponent from 'components/base/baseComponent.js';
angular.module('myApp', []);
bootstrap(BaseComponent, {moduleName: 'myApp'});bootstrap(component, options)
The root component for you application
Configuration options for Angular Next. This will not be a parameter to bootstrap() in Angular 2.
| Field | Description | Required |
|---|---|---|
| moduleName | The name of an existing Angular 1 module | ✅ |