[FIXED] Can't bind to 'options' since it isn't a known property of 'p-multiSelect'

Issue

I am trying to implement datatable filter of primeng.
My code is as below:

<p-column field="time" header="Time" [filter]="true" filterPlaceholder="&#xf0b0;">
  <ng-template pTemplate="filter">
    <p-multiSelect [options]="time"></p-multiSelect>
  </ng-template>
</p-column>

But it is showing an error: Can’t bind to ‘options’ since it isn’t a known property of ‘p-multiSelect’.

Solution

You need to import import {MultiSelectModule} from 'primeng/primeng';
'
in your module.ts under imports

imports: [
  MultiSelectModule
]

Answered By – Sajeetharan

Answer Checked By – Marie Seifert (Easybugfix Admin)

Leave a Reply

(*) Required, Your email will not be published