-
Notifications
You must be signed in to change notification settings - Fork 93
/
index.ts
25 lines (21 loc) · 816 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
// Copyright (C) 2016 Sergey Akopkokhyants
// This project is licensed under the terms of the MIT license.
// https://github.com/akserg/ng2-slim-loading-bar
import { NgModule, ModuleWithProviders } from "@angular/core";
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';
@NgModule({
declarations: [SlimLoadingBarComponent],
exports: [SlimLoadingBarComponent],
providers: [SlimLoadingBarService]
})
export class SlimLoadingBarModule {
static forRoot(): ModuleWithProviders {
return {
ngModule: SlimLoadingBarModule,
providers: [SlimLoadingBarService]
};
}
}