Skip to content

Instantly share code, notes, and snippets.

@CodingWithTashi
Created February 22, 2020 06:10
Show Gist options
  • Save CodingWithTashi/449c15e1f7628fa096669923c963ebac to your computer and use it in GitHub Desktop.
Save CodingWithTashi/449c15e1f7628fa096669923c963ebac to your computer and use it in GitHub Desktop.
Form Filling
<ol>
<li>
<mat-form-field>
<mat-label>Enter your name?</mat-label>
<input matInput [(ngModel)]="name">
</mat-form-field>
</li>
<li>
<button mat-raised-button (click)="openDialog()">Enter age in dialog</button>
</li>
<li *ngIf="age">
You chose: <i>{{age}}</i>
</li>
</ol>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment