Main.ts code as follows
import { NgModule } from '@angular/core';
import {BrowserModule} from '@angular/platform-browser';
import {FormsModule} from '@angular/forms';
import {HttpModule} from '@angular/http';
import {platformBrowserDynamic} from '@angular/platform-browser-dynamic';
import { AppComponent } from './app/app.component';
import {EmployeeService} from './app/app.service';
import { enableProdMode } from '@angular/core';
import { environment } from './environments/environment';
import { AppModule } from './app/app.module';
import { Component } from '@angular/core/src/metadata/directives';
if (environment.production) {
enableProdMode();
}
@NgModule({
imports: [BrowserModule, FormsModule, HttpModule],
declarations: [AppComponent],
providers: [EmployeeService]
})
platformBrowserDynamic().bootstrapModule(AppModule);
when i run the above code shows error as follows
ts declartion excepted
what is the mistake in my above code.

Answers
Know the answer? Post it. Somebody with the same question will find it here.