mirror of
https://github.com/richard-loafle/fuse-angular.git
synced 2026-03-11 01:08:41 +00:00
Updated existing Angular Material examples
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
<form>
|
||||
<h4>mat-select</h4>
|
||||
<mat-form-field>
|
||||
<mat-select placeholder="Favorite food" [(ngModel)]="selectedValue" name="food">
|
||||
<mat-label>Favorite food</mat-label>
|
||||
<mat-select [(ngModel)]="selectedValue" name="food">
|
||||
<mat-option *ngFor="let food of foods" [value]="food.value">
|
||||
{{food.viewValue}}
|
||||
</mat-option>
|
||||
@@ -10,8 +11,9 @@
|
||||
<p> Selected food: {{selectedValue}} </p>
|
||||
<h4>native html select</h4>
|
||||
<mat-form-field>
|
||||
<select matNativeControl placeholder="Favorite car" [(ngModel)]="selectedCar" name="car">
|
||||
<option value="" disabled selected></option>
|
||||
<mat-label>Favorite car</mat-label>
|
||||
<select matNativeControl [(ngModel)]="selectedCar" name="car">
|
||||
<option value="" selected></option>
|
||||
<option *ngFor="let car of cars" [value]="car.value">
|
||||
{{car.viewValue}}
|
||||
</option>
|
||||
|
||||
Reference in New Issue
Block a user