angular-cn/modules/angular2/docs/cheatsheet/bootstrapping.md

289 B
Raw Blame History

@cheatsheetSection Bootstrapping @cheatsheetIndex 0 @description import {bootstrap} from 'angular2/angular2';

@cheatsheetItem bootstrap(MyAppComponent, [MyService, provide(...)]); Bootstraps an application with MyAppComponent as the root component and configures the DI providers.