ng Select is not working in angular@14 the field is coming as blank

105 Views Asked by At

I have installed ng select veriosn 9.1.0 in my angular 14 and I'm not able to see the field in my browser as shown below.

enter image description here

both tpa and programs are searchable but it is blank here is my code

       <div style="display: none;">
         <input type="text">
       </div>
     
       <ng-select [items]="exportPdfInstance.tpaDetails" ngDefaultControl [virtualScroll]="true" bindLabel="tpaName"
         bindValue="tpaId" (change)="changeLeagueOwner($event)" placeholder="Select Tpa" formControlName="tpa">
       </ng-select>
     </div>
     <div class="group_item p-relative d-grid">
       <label>Program</label>

       <ng-select [items]="exportPdfInstance.detailsProgram" ngDefaultControl [virtualScroll]="true"
         bindLabel="clientName" bindValue="programId" placeholder="Select Program" formControlName="program">
       </ng-select>
     </div

I'm getting the data from server

here is my package.json

enter image description here

it is working in different branch of my project i have created this from working branch but here it is not working

0

There are 0 best solutions below