Skip to content

Instantly share code, notes, and snippets.

@Ze1598
Created November 22, 2019 16:20
Show Gist options
  • Save Ze1598/bf10e35a0274804b205d93915dc5ba1d to your computer and use it in GitHub Desktop.
Save Ze1598/bf10e35a0274804b205d93915dc5ba1d to your computer and use it in GitHub Desktop.
Modal component: modal.component.html
<div id="modal-content-wrapper">
<header id="modal-header">
<h1 id="modal-title">Are you sure you want to logout?</h1>
</header>
<section id="modal-body">
<p>If you logout bad things might happen, but don't mind me, I'm just the description in a modal...</p>
</section>
<footer id="modal-footer">
<button mat-raised-button id="modal-action-button" (click)="actionFunction()">Logout</button>
<button mat-raised-button id="modal-cancel-button" (click)="closeModal()">Go back</button>
</footer>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment