Primeng Datatable Header Issue And Solution

Primeng Datatable  Header Is Not Working :

 p-header Not working: 

Primeng data table header is not working while using <p-header>List of Cars</p-header>

Solution :

in component.ts file you have to import

import {Header} from 'primeng/primeng';

in html page you have to add .Thats it will work fine .

 <header>List of Cars</header> 

 still your primeng datatable header is not working ?

Then update your primeng version using the node  command

npm install primeng --save

Post a comment