2016-05-03 14:06:32 +02:00
|
|
|
import { bootstrap } from '@angular/platform-browser-dynamic';
|
2016-06-03 11:16:46 -07:00
|
|
|
import { AppComponent } from './app.component.1';
|
|
|
|
import { HeroService } from './heroes/hero.service.1';
|
2016-01-11 13:49:12 +01:00
|
|
|
|
2016-06-03 11:16:46 -07:00
|
|
|
bootstrap(AppComponent);
|
|
|
|
|
|
|
|
function discouraged() {
|
|
|
|
//#docregion bootstrap-discouraged
|
|
|
|
bootstrap(AppComponent,
|
|
|
|
[HeroService]); // DISCOURAGED (but works)
|
|
|
|
//#enddocregion bootstrap-discouraged
|
|
|
|
}
|