Created
December 24, 2016 23:58
-
-
Save shumbo/5b417936656e19ff43abf1dfcde84dd7 to your computer and use it in GitHub Desktop.
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
this.modal.open<string>(SampleModalComponent).then(name => { | |
if (name) { | |
this.title = `Hello ${name}`; | |
} else { | |
this.notification.open('Name was not set', 'danger', 3); | |
} | |
}).catch(e => { | |
// rejected | |
this.notification.open('Modal was closed', 'warning', 3); | |
if (e) { | |
console.warn(e); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment