File

projects/maplander/core/src/lib/snackbar/snack-bar.module.ts

Methods

Static forRoot
forRoot()
import {ModuleWithProviders, NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {SnackBarService} from './snack-bar.service';
import { MatSnackBarModule } from '@angular/material/snack-bar';

@NgModule({
  imports: [
    CommonModule,
    MatSnackBarModule
  ]
})
export class SnackBarModule {


  static forRoot(): ModuleWithProviders {
    return {
      ngModule: SnackBarModule,
      providers: [
        SnackBarService
      ]
    };
  }

}

result-matching ""

    No results matching ""