Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Adding PrimeNG components #3812


User avatar
0
ribbo created

Hi, I am having trouble adding the Dropdown PrimeNG to my Angular project. In main.module.ts I added import { DropdownModule } from "primeng/primeng";

and

@NgModule({ imports: [ ..... DropdownModule .....

But when ever I reference in the html component the p-dropdown component I get errors about it now being able to find the ngModel component. Basically it isn't importing properly. Am I missing something I need for the import? eg. <p-dropdown [options]="starredSegments" [(ngModel)]="selectedSegmentChallengeRule" formControlName="segmentCombobox" [filter]="true"></p-dropdown>

Thanks, Matt


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @Ribbo,

    Can you try to add this module into admin.module.ts ?

    Thanks.