Skip to content

Instantly share code, notes, and snippets.

@CodingWithTashi
Created February 22, 2020 06:11
Show Gist options
  • Save CodingWithTashi/134b1db652e9b821b6bab66a86d897da to your computer and use it in GitHub Desktop.
Save CodingWithTashi/134b1db652e9b821b6bab66a86d897da to your computer and use it in GitHub Desktop.
<h1 mat-dialog-title>Hi {{data.name}}</h1>
<div mat-dialog-content>
<p>How old are you</p>
<mat-form-field>
<mat-label>Your age</mat-label>
<input matInput [(ngModel)]="data.age">
</mat-form-field>
</div>
<div mat-dialog-actions>
<button mat-button (click)="onNoClick()">No Thanks</button>
<button mat-button [mat-dialog-close]="data.age" cdkFocusInitial>Ok</button>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment