title: SyntaxError: Unexpected token <at eval (<anonymous>) Angular 2
body: <p>I am using datatable by the following link <a href="https://www.npmjs.com/package/angular2-datatable" rel="nofollow noreferrer">https://www.npmjs.com/package/angular2-datatable</a></p>
  
  <p>I have followed every step of this link However I am getting an error as shown below </p>
  
  <pre><code>SyntaxError: Unexpected token &lt;
          at eval (&lt;anonymous&gt;)
          at Object.eval (http://localhost:28739/app/app.module.js:25:28)
          at eval (http://localhost:28739/app/app.module.js:66:4)
          at eval (http://localhost:28739/app/app.module.js:67:3)
      Evaluating http://localhost:28739/angular2-datatable
      Evaluating http://localhost:28739/app/app.module.js
      Evaluating http://localhost:28739/app/main.js
      Error loading http://localhost:28739/app/main.js
  (anonymous) @ localhost/:27
  </code></pre>
  
  <p>Here is my module.ts</p>
  
  <p>I am getting an error because of import case I think so.But not able to figure it out.</p>
  
  <pre><code>    import { NgModule } from '@angular/core';
  import { BrowserModule } from '@angular/platform-browser';
  import { FormsModule } from '@angular/forms';
  import { DataTableModule } from "angular2-datatable";
  import { Routes,RouterModule} from '@angular/router';
  import { HttpModule, JsonpModule } from '@angular/http';
  import { ModuleWithProviders } from '@angular/core';
  import { AppComponent} from "./app.component";
  import { EqualValidator } from "./Validation/equal.validator.directive";
  import { LoginComponent } from "./Components/login.Component";
  import { HomeComponent } from "./Components/home.component";
  import { DashBoardComponent } from "./Components/dashBoard.Component";
  import { FooterComponent } from "./Components/footer.Component";
  import { NavComponent } from "./Components/nav.Component";
  import { DashBoardItemComponent } from "./Components/dashBoard.Item.Component";
  import { MarketComponent } from "./Components/market.Component";
  
  
  
  const appRoutes: Routes = [
      { path: '', redirectTo: 'Home/Index', pathMatch: 'full' },
      { path: 'DashBoard/Index', children: [
                                  { path: '', component: DashBoardItemComponent},
                                  { path: '', component: DashBoardComponent, outlet: 'dashboard' }
                                  ]},
      { path: 'Account/Login', children: [
                                  {path: '', component: NavComponent, outlet: 'navbar'},
                                  {path: '', component: LoginComponent},
                                  {path: '', component: FooterComponent, outlet: 'footer'}
                                  ]},
      { path: 'Home/Index', children: [
                              {path: '', component: NavComponent, outlet: 'navbar'},
                              {path: '', component: HomeComponent},
                              {path: '', component: FooterComponent, outlet: 'footer'}
                              ]},
      {
          path: 'DashBoard/MarketList',
          children: [
              { path: '', component: DashBoardComponent, outlet: 'dashboard' },
              { path: '', component: MarketComponent }
          ]
      }
  ];
  
  
  
  export const routing = RouterModule.forRoot(appRoutes);
  
  @NgModule({
      imports: [BrowserModule, DataTableModule,FormsModule, HttpModule,routing],
      declarations: [AppComponent, LoginComponent, HomeComponent, DashBoardComponent, EqualValidator,FooterComponent,NavComponent,DashBoardItemComponent,MarketComponent],
      bootstrap: [AppComponent]
  })
  export class AppModule { }
  </code></pre>
  
  <p>I have install the datatable and included in the import. Where I am doing mistake.</p>
  
  <p>I google it found that this error may occure due to the import problem. But I dont know.</p>
  
  <p>Please anyone let me know how can I resolve this issue</p>