The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Build Select Dropdowns for Angular 2 Forms

Build Select Dropdowns for Angular 2 Forms

1:10
Select Dropdowns in Angular 2 a built with `select` and `option` elements. You use `*ngFor` to loop through your values and create options and use `ngModel` to keep track of the value as it changes.
Watch this lesson now
Avatar
egghead.io

Select Dropdowns in Angular 2 a built with select and option elements. You use *ngFor to loop through your values and create options and use ngModel to keep track of the value as it changes.

Avatar
john

How can we make this a custom control within the form? So for example, instead of having <form><select>... we would have <form><mySelect>... I'm especially interested in having the select control be a multi-select control, rather than a single-select control.

In reply to egghead.io
HEY, QUICK QUESTION!
Joel's Head
Why are we asking?