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