import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { HttpModule } from '@angular/http';
//purposefully removed some imports
@NgModule({
declarations: [
AppComponent,
HeaderComponent,
FooterComponent
],
imports: [
BrowserModule,
FormsModule,
HttpModule,
AddonsModule,
PageBodyModule,
NgbModule.forRoot(),
OwlModule,
AgmCoreModule.forRoot({
apiKey: ''
}),
NouisliderModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
How can I convert this code written Angular 2 in TypeScript into ES6? I only want to convert this @NgModule ({...}) "app.module.ts" part into ES6. Since I have an Angular 2 project which I need to convert into ES6. Up to now I only came up with this issue.