projects/maplander/core/src/lib/snackbar/snack-bar.module.ts
Static forRoot |
forRoot()
|
Returns :
ModuleWithProviders
|
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
]
};
}
}