-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.module.ts
51 lines (46 loc) · 1.47 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
46
47
48
49
50
51
import { NgModule, ModuleWithProviders } from '@angular/core';
import { CommonModule } from '@angular/common';
// Wrapper Component with modalReference by ID's
// Component that includes Modal Selector and Functionality.
import { SlimPopOpenModalComponent } from './open-modal/open-modal.component';
import { SlimPopupModalComponent } from './modal/modal-popup.component';
import { SlimPopWrapperComponent } from './wrapper/wrapper.component';
import { SlimItemListComponent } from './wrapper/item-list.component';
import { SlimPopCatNodeComponent } from './wrapper/Node.component';
import { SlimPopScrollPipe, SlimPopSelectionService, SlimPopModalService } from './services';
@NgModule({
imports: [
CommonModule,
],
declarations: [
SlimPopOpenModalComponent,
SlimPopupModalComponent,
SlimPopWrapperComponent,
SlimItemListComponent,
SlimPopCatNodeComponent,
SlimPopScrollPipe
],
exports: [
SlimPopupModalComponent,
SlimPopWrapperComponent,
SlimPopOpenModalComponent,
SlimItemListComponent
],
entryComponents: [
SlimPopCatNodeComponent
],
})
// As default, providers will always initialize to private
// Object's due to this we are using static forRoot to be able
// to use it within app without declaring it. MrZ
export class SlimPopupModule {
static forRoot(): ModuleWithProviders {
return {
ngModule: SlimPopupModule,
providers: [
SlimPopModalService,
SlimPopSelectionService
]
};
}
}