forked from akserg/ng2-slim-loading-bar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.ts
33 lines (27 loc) · 964 Bytes
/
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
// Copyright (C) 2016 Sergey Akopkokhyants
// This project is licensed under the terms of the MIT license.
// https://github.com/akserg/ng2-slim-loading-bar
'use strict';
import {NgModule, ModuleWithProviders} from "@angular/core";
import {CommonModule} from "@angular/common";
import {SlimLoadingBarComponent} from './src/slim-loading-bar.component';
import {SlimLoadingBarService} from './src/slim-loading-bar.service';
export * from './src/slim-loading-bar.component';
export * from './src/slim-loading-bar.service';
export default {
providers: [SlimLoadingBarService],
directives: [SlimLoadingBarComponent]
}
@NgModule({
imports: [CommonModule],
declarations: [SlimLoadingBarComponent],
exports: [CommonModule, SlimLoadingBarComponent]
})
export class SlimLoadingBarModule {
static forRoot(): ModuleWithProviders {
return {
ngModule: SlimLoadingBarModule,
providers: [SlimLoadingBarService]
};
}
}