Skip to content
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).

Example

import {bootstrap} from 'core/core.js';
import BaseComponent from 'components/base/baseComponent.js';

angular.module('myApp', []);

bootstrap(BaseComponent, {moduleName: 'myApp'});

parameters

bootstrap(component, options)

component

The root component for you application

options

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

Clone this wiki locally