Привет
Подскажите
Использую Angular 10 & Material Dialog
Пример на сайте
constructor(public dialog: MatDialog) {}
openDialog(): void {
const dialogRef =
this.dialog.open(DialogOverviewExampleDialog, {
width: '250px',
data: {name:
this.name, animal: this.animal}
});
dialogRef.afterClosed().subscribe(result => {
console.log('The dialog was closed');
this.animal = result;
});
}
Можно перестроитть окно чтоб настройки делать в template componenta
Тоесть хочу сделать универсальный елем ент
А не октрывать напрямую компонент диалога
DialogOverviewExampleDialog