I am using PrimeNG in my angular5 app. I have issue with p-dropdown
Question
I have p-dropdown for showing countries. I bind the select opti
You can set default value of PrimeNG Dropdown by using ngModel as shown on the following approach:
component.html:
component.ts:
selectedCity: string = 1; //Id value of the City to be selected
If it is not fixed due to version problems, try this:
this.cities.value = this.selectedCity;
Hope this helps...