我有这个模块,它在装饰器中导入BrowserModule,也作为JavaScript导入。为什么我必须在Angular 2中导入两次?
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser' //HERE
import { PonyRacerAppComponent } from './app.component';
@NgModule({
imports: [BrowserModule], //AND HERE
declarations: [PonyRacerAppComponent],
bootstrap: [PonyRacerAppComponent]
})
export class AppModule {
}