Why does my angular2 app initialize twice?
问题 Please tell me where my mistake is, my app is running the AppComponent code twice. I have 5 files: main.ts: import { bootstrap } from '@angular/platform-browser-dynamic'; import { enableProdMode } from '@angular/core'; import { AppComponent, environment } from './app/'; import { APP_ROUTER_PROVIDERS } from './app/routes'; import {HTTP_PROVIDERS} from '@angular/http'; import {ServiceProvider} from "./app/providers/app.service.provider" if (environment.production) { enableProdMode(); }