title: How can I re-render the ngFor
body: <p>I just want to know how can I rerender the ngFor or refresh a component (hello.component.ts). Instead of text could be images or charts. </p>
  
  <p>Here is an simple example: <a href="https://stackblitz.com/edit/angular-mmrem2" rel="noreferrer">Stackblitz</a></p>
  
  <p>Solution:</p>
  
  <pre><code> public show = true;
   addData(data){
        this.data.push(data);
        this.reload();
      }
    reload() {
      this.show = false;
      setTimeout(() =&gt; this.show = true);
    }
  </code></pre>