Skip to content

Instantly share code, notes, and snippets.

@AndrewAllison
Created March 20, 2017 06:47
Show Gist options
  • Save AndrewAllison/930f09cf9a017524fc83fc9ec4563a66 to your computer and use it in GitHub Desktop.
Save AndrewAllison/930f09cf9a017524fc83fc9ec4563a66 to your computer and use it in GitHub Desktop.
Using Md DIalog
// TODO
openDialog() {
const dialogRef = this.dialog.open(DialogResultExampleDialogComponent, {
width: '80%',
data: this.selected[0] // will show in config.data on the dialog
});
dialogRef.afterClosed().subscribe(result => {
this.selectedOption = result;
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment