Zhimin(Rex) YE 5ae026ced3 Merge remote-tracking branch 'remotes/angular.io/master'
# Conflicts:
#	public/docs/_examples/dependency-injection/ts/app/main.1.ts
#	public/docs/ts/latest/guide/dependency-injection.jade
2016-06-04 16:45:10 +01:00

14 lines
384 B
TypeScript

import { bootstrap } from '@angular/platform-browser-dynamic';
import { AppComponent } from './app.component.1';
import { HeroService } from './heroes/hero.service.1';
bootstrap(AppComponent);
function discouraged() {
//#docregion bootstrap
bootstrap(AppComponent,
[HeroService]); // DISCOURAGED (but works)不推荐(但可用)
//#enddocregion bootstrap
}