dependencies Legend  Declarations  Module  Bootstrap  Providers  Exports cluster_SnotifyModule cluster_SnotifyModule_declarations cluster_SnotifyModule_exports ButtonsComponent ButtonsComponent SnotifyModule SnotifyModule ButtonsComponent->SnotifyModule KeysPipe KeysPipe KeysPipe->SnotifyModule PromptComponent PromptComponent PromptComponent->SnotifyModule SnotifyComponent SnotifyComponent SnotifyComponent->SnotifyModule ToastComponent ToastComponent ToastComponent->SnotifyModule TruncatePipe TruncatePipe TruncatePipe->SnotifyModule KeysPipe KeysPipe SnotifyModule->KeysPipe SnotifyComponent SnotifyComponent SnotifyModule->SnotifyComponent TruncatePipe TruncatePipe SnotifyModule->TruncatePipe

File

projects/ng-snotify/src/lib/snotify.module.ts

Methods

Static forRoot
forRoot()
import { ModuleWithProviders, NgModule } from '@angular/core';
import { SnotifyComponent } from './components/snotify/snotify.component';
import { SnotifyService } from './services/snotify.service';
import { KeysPipe } from './pipes/keys.pipe';
import { TruncatePipe } from './pipes/truncate.pipe';
import { CommonModule } from '@angular/common';
import { ButtonsComponent } from './components/buttons/buttons.component';
import { PromptComponent } from './components/prompt/prompt.component';
import { ToastComponent } from './components/toast/toast.component';

@NgModule({
  imports: [CommonModule],
  declarations: [SnotifyComponent, ToastComponent, TruncatePipe, ButtonsComponent, PromptComponent, KeysPipe],
  exports: [SnotifyComponent, TruncatePipe, KeysPipe]
})
export class SnotifyModule {
  static forRoot(): ModuleWithProviders<SnotifyModule> {
    return {
      ngModule: SnotifyModule,
      providers: [SnotifyService]
    };
  }
}

result-matching ""

    No results matching ""