this.dialog.open(); this.dialog.title = "Success"; this.dialog.message="New password has been saved"; //this.dialog.onRightButtonSelect = this.router.navigate(['home']);
Hello Winthan,
Did you manage to open that sample I've referred in the preceding response? Because I'm doing exactly the same operation as you would like to do.
I'm referring the sample, here again, primarily to not missing it again.
Sample: https://stackblitz.com/edit/angular-djkhkg?file=src/app/dialog-sample-1/dialog-sample-1.component.ts.
I'm looking forward to hearing from you if that helped you to proceed further.
<igx-dialog #alert title="Notification" message="Your message" rightButtonLabel="OK" (onRightButtonSelect)="alert.close()"> </igx-dialog>
I have prepared for you a dummy sample, which demonstrates how you can handle your approach.if there are some further updates you would like to apply, please do it right on the sample and please don't forget to fork it, in order to save your changes, before referencing it back.
If you have any other questions, please contact us again.