/
app.module.ts
45 lines (44 loc) · 1.65 KB
/
app.module.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import {BrowserModule} from '@angular/platform-browser';
import {NgModule} from '@angular/core';
import {RouterModule} from '@angular/router';
import {AppComponent} from './app.component';
import {TransferHttpCacheModule} from '@nguniversal/common';
import {ContentComponent} from './content/content.component';
import {MuraService} from './mura.service';
import {DefaultTemplateComponent} from './templates/default/default.component';
import {AlternateTemplateComponent} from './templates/alternate/alternate.component';
import {DefaultContentTypeTemplateComponent} from './contenttypes/default/default.component';
import {FooterComponent} from './templates/inc/footer/footer.component';
import {HeaderComponent} from './templates/inc/header/header.component';
import {SafePipe} from './pipes/safe.pipe';
import {CollectionLayoutComponent} from './modules/collectionlayout/collectionlayout.component';
import {ExampleComponent} from './modules/example/example.component';
import {DomService} from './dom.service';
import { WindowRef } from './windowref';
@NgModule({
declarations: [
AppComponent,
ContentComponent,
DefaultTemplateComponent,
AlternateTemplateComponent,
DefaultContentTypeTemplateComponent,
HeaderComponent,
FooterComponent,
ExampleComponent,
CollectionLayoutComponent,
SafePipe
],
imports: [
BrowserModule.withServerTransition({appId: 'mura-angular'}),
RouterModule.forRoot([
{ path: '**',
component:ContentComponent
}
]),
TransferHttpCacheModule
],
providers: [MuraService,DomService,WindowRef],
bootstrap: [AppComponent],
entryComponents:[ExampleComponent,CollectionLayoutComponent]
})
export class AppModule { }