forked from akserg/ng2-slim-loading-bar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.ts
27 lines (22 loc) · 922 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
// 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, slimLoadingBarServiceFactory } from './src/slim-loading-bar.service';
export * from './src/slim-loading-bar.component';
export * from './src/slim-loading-bar.service';
export let providers = [{ provide: SlimLoadingBarService, useFactory: slimLoadingBarServiceFactory }];
@NgModule({
declarations: [SlimLoadingBarComponent],
exports: [SlimLoadingBarComponent],
providers: providers
})
export class SlimLoadingBarModule {
static forRoot(): ModuleWithProviders {
return {
ngModule: SlimLoadingBarModule,
providers: providers
};
}
}