Skip to content

Commit

Permalink
fix(): Fix for can't bind to ngClass in div
Browse files Browse the repository at this point in the history
  • Loading branch information
akserg committed Dec 22, 2016
1 parent 3ae003f commit 883bc29
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// https://github.com/akserg/ng2-toasty

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

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

@NgModule({
declarations: [ToastComponent, ToastyComponent],
exports : [ToastComponent, ToastyComponent],
providers: providers
imports: [CommonModule],
declarations: [ToastComponent, ToastyComponent],
exports: [ ToastComponent, ToastyComponent],
providers: providers
})
export class ToastyModule {
static forRoot(): ModuleWithProviders {
static forRoot(): ModuleWithProviders {
return {
ngModule: ToastyModule,
providers: providers
Expand Down

0 comments on commit 883bc29

Please sign in to comment.