This sample demonstrates the template driven form support of the DropDownList. You can choose an item or type a value in the DropDownList. Both values goes into the ng models.
Selected Book: | |
Buyer Name: | |
Buyer Mail ID: |
The DropDownList will be registered with an NgForm directive with bind [(ngModel)] and name attributes. Then you can confirm that two-way data binding will works.
For more information about Template Driven Forms forms can be found in this reference link.