Angular - 'Listen' on @ViewChild changes : <p>How can be a function like <code>onElChanged</code> be implemented, so that this functions gets executed each time properties of <code>&lt;div #plot id="plot-container"&gt;&lt;/div&gt;</code> changed?</p>

<p><strong><em>component.html</em></strong></p>

<pre><code>&lt;div #plot id="plot-container"&gt;&lt;/div&gt;
</code></pre>

<p><strong><em>component.ts</em></strong></p>

<pre><code>@ViewChild('plot') el: ElementRef;

onElChanged(){
  console.log(this.el.nativeElement.clientWidth);
}
</code></pre>
