-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.ts
38 lines (33 loc) · 1.72 KB
/
index.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
import { NgModule, ModuleWithProviders } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RouterModule } from '@angular/router';
import { TileData } from './models/tileData';
import { MessageData } from './models/messageData';
import { ActionTile } from './components/actionTile';
import { ActionTileBar } from './components/actionTileBar';
import { FeatureTile } from './components/featureTile';
import { FeatureTileBar } from './components/featureTileBar';
import { MessageTile } from './components/messageTile';
import { MessageBoard } from './components/messageBoard';
import { TileService } from './services/tileService';
import { FeatureService } from './services/featureService';
import { MessageService } from './services/messageService';
export { TileData, MessageData, ActionTile, ActionTileBar, FeatureTile, FeatureTileBar, MessageTile, MessageBoard, TileService, FeatureService, MessageService };
@NgModule({
imports: [CommonModule, RouterModule ],
declarations: [ActionTile, ActionTileBar, FeatureTile, FeatureTileBar, MessageTile, MessageBoard],
exports: [ActionTile, ActionTileBar, FeatureTile, FeatureTileBar, MessageTile, MessageBoard],
providers: [TileService, FeatureService, MessageService ]
})
export class TilesAndCardsModule {
static forRoot(tileService: TileService, featureService: FeatureService, messageService: MessageService): ModuleWithProviders {
return {
ngModule: TilesAndCardsModule,
providers: [
{ provide: TileService, useValue: tileService },
{ provide: FeatureService, useValue: featureService },
{ provide: MessageService, useValue: messageService }
]
};
}
}