Primeng: p-table sorting doesn't work with [pSortableColumn]

Created on 8 Jun 2018  路  2Comments  路  Source: primefaces/primeng

in p-table column can be sorted with pSortableColumn="field" without square brackets in 6.0.0-beta1. I noticed it migrating from 4.3.0 to 6.0.0 version and migrating from p-dataTable to p-table

Most helpful comment

When using square brackets use single quotes around your field name. [pSortableColumn]="'field'". Or make the field a member of your class.

All 2 comments

When using square brackets use single quotes around your field name. [pSortableColumn]="'field'". Or make the field a member of your class.

Invalid issue.

Was this page helpful?
0 / 5 - 0 ratings