2016-09-22 16:45:53 +02:00
|
|
|
// 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 {
|
|
|
|
//
|
|
|
|
// }
|
2016-09-22 11:36:28 +02:00
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
import { FormsModule } from '@angular/forms';
|
2016-09-22 16:45:53 +02:00
|
|
|
|
2016-09-22 11:36:28 +02:00
|
|
|
import { UniversalModule } from 'angular2-universal';
|
2016-09-22 16:45:53 +02:00
|
|
|
|
2016-09-22 11:36:28 +02:00
|
|
|
import { App } from './app/app';
|
2016-09-22 16:45:53 +02:00
|
|
|
//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';
|
2016-09-22 11:36:28 +02:00
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
bootstrap: [ App ],
|
2016-09-22 16:45:53 +02:00
|
|
|
declarations: [ App, ClaimsAdminComponent, ClaimsComponent, ClaimEntityFormatter,pagingFormatterNoLoad, Open, ProjectTitleFormatter, PublicationTitleFormatter,HomeComponent, Loading, Alert],
|
2016-09-22 11:36:28 +02:00
|
|
|
imports: [
|
2016-09-22 16:45:53 +02:00
|
|
|
UniversalModule, // BrowserModule, HttpModule, and JsonpModule are included
|
2016-09-22 11:36:28 +02:00
|
|
|
FormsModule,
|
2016-09-22 16:45:53 +02:00
|
|
|
routing
|
|
|
|
],
|
|
|
|
providers: [ ClaimsService ]
|
2016-09-22 11:36:28 +02:00
|
|
|
})
|
|
|
|
export class MainModule {
|
|
|
|
|
|
|
|
}
|