// import { NgModule } from '@angular/core'; // import { FormsModule } from '@angular/forms'; // import { RouterModule } from '@angular/router'; // import { UniversalModule } from 'angular2-universal'; // import { HomeComponent } from './app/home/home.component'; // import { App } from './app/app'; // // @NgModule({ // bootstrap: [ App ], // declarations: [ App, HomeComponent ], // imports: [ // UniversalModule, // NodeModule, NodeHttpModule, and NodeJsonpModule are included // FormsModule, // RouterModule.forRoot([ // { path: '', component: HomeComponent, pathMatch: 'full' } // ]) // ] // }) // export class MainModule { // // } import { NgModule } from '@angular/core'; import { FormsModule } from '@angular/forms'; import { UniversalModule } from 'angular2-universal'; import { App } from './app/app'; //for routing: import {ClaimsAdminComponent} from './app/claimPages/claims/claimsAdmin.component'; import { routing } from './app/app.routing'; import {Routes, RouterModule} from "@angular/router"; import {Open} from './app/common/modal/open.component'; import {Alert} from './app/common/modal/alert'; import {Loading} from './app/common/modal/loading.component'; import {ClaimsComponent} from './app/claimPages/claims/claims.component'; import {ClaimsService} from './app/services/claims.service'; import {Claim} from './app/entities/claim'; import {pagingFormatterNoLoad} from './app/common/pagingFormatterNoLoad.component'; import {ClaimEntityFormatter} from './app/common/claimEntityFormatter.component'; import {PublicationTitleFormatter} from './app/common/publicationTitleFormatter.component'; import {ProjectTitleFormatter} from './app/common/projectTitleFormatter.component'; import {HomeComponent} from './app/home/home.component'; @NgModule({ bootstrap: [ App ], declarations: [ App, ClaimsAdminComponent, ClaimsComponent, ClaimEntityFormatter,pagingFormatterNoLoad, Open, ProjectTitleFormatter, PublicationTitleFormatter,HomeComponent, Loading, Alert], imports: [ UniversalModule, // BrowserModule, HttpModule, and JsonpModule are included FormsModule, routing ], providers: [ ClaimsService ] }) export class MainModule { }