Skip to content

Instantly share code, notes, and snippets.

@hicaro
Created January 15, 2020 05:20
Show Gist options
  • Save hicaro/8076becb65aa1d0ec6041bb700f6fcc6 to your computer and use it in GitHub Desktop.
Save hicaro/8076becb65aa1d0ec6041bb700f6fcc6 to your computer and use it in GitHub Desktop.
<button
[disabled]="!isButtonEnabled"
(click)="handleButtonClick()"
mat-button type="button" class="button">
<span
[matTooltip]="'Info about why the button is disabled.'"
[matTooltipDisabled]="isButtonEnabled">
<mat-icon>save</mat-icon>
Action
</span>
</button>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment