title: Browser gets stuck/freeze with array push in angular 4. How to fix this?
body: <p>I have an array in logsCompoment.ts named <code>logs</code> and I push new logs to this array and write logs in html page with ngFor.
  I do this following ways.</p>
  
  <pre><code>this.socket.on('newline', (data) =&gt; {
                  this.logs.push(data);
                  }
              });
  </code></pre>
  
  <p>and in logsCompoment.html, I do following to show logs.</p>
  
  <pre><code>&lt;li *ngFor="let log of logs" [innerHTML]="log"&gt;&lt;/li&gt;
  </code></pre>
  
  <p>Everything works fine if logs are not coming very frequently. But if logs are coming very frequently like around 1000 lines in a seconds, it freezes the browser.
  My question is, How to deal with such situations. If I am not following proper way to implement this, Please answer me with the proper way of its implementation, so that browser could not get stuck.</p>