narasiman rao

narasiman rao

  • NA
  • 519
  • 767.3k

Ts declartion excepted this error shows in main.ts page

Dec 7 2017 11:27 PM
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.