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