Saturday, May 27, 2017

Use an ngFor to hydrate a dropdown list.

<select #labRat>
   <option value="">pick a lab rat</option>
   <option *ngFor="let mouse of mice" [value]="mouse.Id">
      {{mouse.Name}}
   </option>
</select>

No comments:

Post a Comment