I am using PrimeNG to render my dynamic dropdown options. Based on the option value I don't want my ngModel to be udpated.
Let's say if my option is an object such as dropdownObject.canUpdateModel = true, then I want my ngModel to be updated, if not ngModel should not be updated. Can someone please help me with this.
<p-dropdown #dp [options]="myList"(onChange)="onFMyDropdownChange(selectedForeCast)"[(ngModel)]="selectedForeCast"></p-dropdown>