Created
March 20, 2017 06:47
-
-
Save AndrewAllison/930f09cf9a017524fc83fc9ec4563a66 to your computer and use it in GitHub Desktop.
Using Md DIalog
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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