ipsos-components
Version:
Material Design components for Angular
30 lines (25 loc) • 751 B
text/typescript
import {Component} from '@angular/core';
import {MatDialog} from '@angular/material';
/**
* @title Dialog with header, scrollable content and actions
*/
({
selector: 'dialog-content-example',
templateUrl: 'dialog-content-example.html',
})
export class DialogContentExample {
constructor(public dialog: MatDialog) {}
openDialog() {
const dialogRef = this.dialog.open(DialogContentExampleDialog, {
height: '350px'
});
dialogRef.afterClosed().subscribe(result => {
console.log(`Dialog result: ${result}`);
});
}
}
({
selector: 'dialog-content-example-dialog',
templateUrl: 'dialog-content-example-dialog.html',
})
export class DialogContentExampleDialog {}