Skip to content

Instantly share code, notes, and snippets.

@Seanmclem
Created July 11, 2018 01:19
Show Gist options
  • Save Seanmclem/0d24d4d64515b6af41b18162d67eeef5 to your computer and use it in GitHub Desktop.
Save Seanmclem/0d24d4d64515b6af41b18162d67eeef5 to your computer and use it in GitHub Desktop.
<!-- Default Text settings -->
<confirmation-dialog (confirmed)="deleteModalConfirm($event)" (closed)="deleteModalCancel($event)" [opened]="showDeleteDialog"></confirmation-dialog>
<!-- Custom Text settings -->
<confirmation-dialog
[heading]="'Are you sure you want to delete this post?'"
[message]="'This will completely remove this post. Click the Delete button to proceed, or the Cancel button to not make any changes.'"
[confirmTxt]="'Delete'"
[cancelTxt]="'Cancel'"
(confirmed)="deleteModalConfirm($event)"
(closed)="deleteModalCancel($event)"
[opened]="showDeleteDialog"
></confirmation-dialog>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment