File
Constructor
constructor(_dialog: MatDialog)
|
|
Parameters :
Name |
Type |
Optional |
_dialog |
MatDialog
|
No
|
|
import {Injectable} from '@angular/core';
import {MatDialog, MatDialogRef} from '@angular/material/dialog';
import {DialogResponse} from '@maplander/types';
import {AnnounceConfirmComponent} from './announce-confirm.component';
@Injectable()
export class AnnounceConfirmService {
constructor(private _dialog: MatDialog) {
}
public open():
MatDialogRef<AnnounceConfirmComponent, DialogResponse<any>> {
return this._dialog.open(AnnounceConfirmComponent, {
disableClose: true,
panelClass: 'confirm-announce-panel-class'
});
}
}