title: How to hide an element of dynamic table in Angular 9
body: <p>I have a table and i have generated columns and rows dynamically.</p>
  
  <p>This is my <strong>table.component.html</strong></p>
  
  <pre><code>  &lt;table id="tabella" class="table table-striped table-hover"&gt;
      &lt;thead class="thead-dark"&gt;
        &lt;tr&gt;
          &lt;th *ngFor="let header of _object.keys(utenti[0]); let i = index"&gt; {{header}}&lt;/th&gt;
  
        &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
        &lt;tr *ngFor="let row of utenti"&gt;
  
          &lt;th *ngFor="let utente of _object.keys(row)"&gt;{{row[utente]}}&lt;/th&gt;
        &lt;/tr&gt;
      &lt;/tbody&gt;
    &lt;/table&gt;
  </code></pre>
  
  <p>and this my <strong>table.component.ts</strong></p>
  
  <pre><code>import { Component, OnInit } from '@angular/core';
  import { GetUtentiService } from '../../services/getutenti.service';
  
  @Component({
    selector: 'app-utente',
    templateUrl: 'utente.component.html',
    styleUrls: ['./utente.component.css']
  })
  export class UtenteComponent implements OnInit {
  
     utenti: any;
     _object = Object;
    visibile: boolean;
  
  
  
    constructor(private _getutentiService: GetUtentiService) { }
  
    ngOnInit() {
  
      // Richiamo la funzione definita nel service che effettua una get sul database
  
      this._getutentiService.getUtenti().subscribe(response =&gt; {
        this.utenti = response;
      }, error =&gt; {
        console.log(error);
      });
    }
  }
  </code></pre>
  
  <p>this is my service. </p>
  
  <pre><code>import { Injectable } from '@angular/core';
  import { HttpClient } from '@angular/common/http';
  
  @Injectable({
    providedIn: 'root'
  })
  export class GetUtentiService {
  
    private url: string = 'http://localhost:56493/Server/GetUtente';
    constructor(private http: HttpClient) { }
  
    getUtenti() {
      return this.http.get(this.url);
    }
  }
  </code></pre>
  
  <p>Now i want to have control of single cells of my table. I'm trying to hide only ID's column but in this code i'm not able to say "Hide this column if is ID", or i want to format date in dd/mm/yyyy instead of yyyy/mm/dd hh:mm:ss but, again, i have to manage the single cell of my table.</p>
  
  <p>How can i do these changes to my code?</p>