8000 fix(): Fix for can't bind to ngClass in div · akserg/ng2-toasty@883bc29 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit 883bc29

Browse files
committed
fix(): Fix for can't bind to ngClass in div
1 parent 3ae003f commit 883bc29

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

index.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// https://github.com/akserg/ng2-toasty
44

55
import { NgModule, ModuleWithProviders } from "@angular/core";
6+
import { CommonModule } from '@angular/common';
67

78
export * from './src/toasty.service';
89
export * from './src/toasty.component';
@@ -14,12 +15,13 @@ import { ToastyService, toastyServiceFactory } from './src/toasty.service';
1415
export let providers = [{ provide: ToastyService, useFactory: toastyServiceFactory }];
1516

1617
@NgModule({
17-
declarations: [ToastComponent, ToastyComponent],
18-
exports : [ToastComponent, ToastyComponent],
19-
providers: providers
18+
imports: [CommonModule],
19+
declarations: [ToastComponent, ToastyComponent],
20+
exports: [ ToastComponent, ToastyComponent],
21+
providers: providers
2022
})
2123
export class ToastyModule {
22-
static forRoot(): ModuleWithProviders {
24+
static forRoot(): ModuleWithProviders {
2325
return {
2426
ngModule: ToastyModule,
2527
providers: providers

0 commit comments

Comments
 (0)
0