dependencies Legend  Declarations  Module  Bootstrap  Providers  Exports cluster_NotificaitonModule cluster_NotificaitonModule_declarations cluster_NotificaitonModule_exports cluster_NotificaitonModule_providers NotificationComponent NotificationComponent NotificaitonModule NotificaitonModule NotificationComponent->NotificaitonModule NotificationContainer NotificationContainer NotificationContainer->NotificaitonModule NotificationContainer NotificationContainer NotificaitonModule->NotificationContainer NotificationService NotificationService NotificationService->NotificaitonModule

File

src/app/component/notification/notification.module.ts

/**
 * @license
 * Copyright Stbui All Rights Reserved.
 */

import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { OverlayModule } from '@angular/cdk/overlay';
import { PortalModule } from '@angular/cdk/portal';
import { NotificationComponent } from './notification.component';
import { NotificationContainer } from './notification-container';
import { NotificationService, STBUI_NOTIFICATION_DEFAULT_OPTIONS } from './notification.service';
import { NotificationConfig } from './notification.config';
import { MatButtonModule } from '@angular/material/button';
import { MatCardModule } from '@angular/material/card';
import { MatIconModule } from '@angular/material/icon';

export function STBUI_NOTIFICATION_DEFAULT_OPTIONS_PROVIDER_FACTORY() {
  return new NotificationConfig();
}

@NgModule({
  imports: [CommonModule, OverlayModule, PortalModule, MatButtonModule, MatCardModule, MatIconModule],
  exports: [NotificationContainer],
  declarations: [NotificationContainer, NotificationComponent],
  entryComponents: [NotificationContainer, NotificationComponent],
  providers: [NotificationService, {
    provide: STBUI_NOTIFICATION_DEFAULT_OPTIONS,
    useFactory: STBUI_NOTIFICATION_DEFAULT_OPTIONS_PROVIDER_FACTORY
  }]
})
export class NotificaitonModule {
}

result-matching ""

    No results matching ""