2015-11-05 07:33:56 -05:00
|
|
|
|
@cheatsheetSection
|
2015-11-06 07:26:24 -05:00
|
|
|
|
Bootstrapping
|
|
|
|
|
@cheatsheetIndex 0
|
2015-11-05 07:33:56 -05:00
|
|
|
|
@description
|
2015-12-09 07:33:42 -05:00
|
|
|
|
{@target js ts}`import {bootstrap} from 'angular2/angular2';`{@endtarget}
|
|
|
|
|
{@target dart}`import 'package:angular2/bootstrap.dart';`{@endtarget}
|
2015-11-05 07:33:56 -05:00
|
|
|
|
|
|
|
|
|
@cheatsheetItem
|
2015-12-09 07:33:42 -05:00
|
|
|
|
syntax:
|
|
|
|
|
`bootstrap(MyAppComponent, [MyService, provide(...)]);`|`provide`
|
|
|
|
|
description:
|
2015-12-10 12:52:19 -05:00
|
|
|
|
Bootstraps an application with MyAppComponent as the root component, and
|
|
|
|
|
configures the app's dependency injection providers.
|