Need help with PrimeNG dropdown in an Angular2 model-driven form. The PrimeNG documentation I have found only use template-driven forms.
A sample code for the following would help greatly:
Thanks.
To use the model driven form in Angular2 or Angular4 you'll need to change the dropdown to
<p-dropdown [options]="cities" formControlName="selectedCity"></p-dropdown>
and instantiate a formGroup on the backend that has the control selectedCity in it like so ...
this.angularObjectForm = this.formBuilder.group({selectedCity: [''])}