Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

drop down listing in angular form


<form [formGroup]="form" (ngSubmit)="submit()">
  <label for="orders">Order</label>
  <select formControlName="orders" id="orders">
    <option *ngFor="let order of orders; let i = index" [value]="orders[i].id">
      {{orders[i].name}}
    </option>
  </select>

  <button>submit</button>
</form>

Source by coryrylan.com #
 
PREVIOUS NEXT
Tagged: #drop #listing #angular #form
ADD COMMENT
Topic
Name
7+9 =