ahmed elbarbary

ahmed elbarbary

  • NA
  • 1.6k
  • 277.9k

How to prevent totalCount Column from display ?

May 11 2020 10:03 PM
How to prevent totalCount Column from display on header and content on angular 7 ?
 
header col below is dynamic contain  columns of headers as id ,name,totalCount
 

content body below is dynamic  contain rows data for id and Name and totalCount
 
I need to prevent column totalCount from display  on headercol and contentbody
 
so how to do that please  
 
 
  1. this.headerCols = Object.keys(data2[0]);  
  2.      console.log("header col" + this.headerCols);  
  3.      data2.forEach((item) =>{  
  4.        let values = Object.keys(item).map((key)=> item[key]); 
  5.        this.contentBody.push(values);  
  6.        console.log("contenet " + JSON.stringify( this.contentBody));  
 

Answers (2)