Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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'.

like image 741
Sargam Sanghani Avatar asked Jan 06 '18 06:01

Sargam Sanghani


2 Answers

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

imports: [
  MultiSelectModule
]
like image 157
Sajeetharan Avatar answered Sep 24 '22 06:09

Sajeetharan


You need to install Angular CDK. Use npm install @angular/cdk --save command. Import multi select module in yourModule.module using

import {MultiSelectModule} from 'primeng/multiselect';
like image 22
Vương Hữu Thiện Avatar answered Sep 25 '22 06:09

Vương Hữu Thiện