title: resizeObserver is not activated when changing between pages
body: <p>my problem is than I am using resizeObserver to detect when a table changes its size and execute a function,
  it works correctly when reloading the page, but if you change the page and go back to the previous one, resizeObserver stops working
  typescript code</p>
  <pre><code>ngOnInit() {
  let elem = document.getElementById('table')
  let resizeObserver = new ResizeObserver(() =&gt; {
    console.log('table size changed')
  });
  resizeObserver.observe(elem);}
  </code></pre>
  <p>HTML element</p>
  <pre><code>    &lt;ngx-datatable
        id=&quot;table&quot;&gt;
        ... 
      &lt;/ngxdatatable&gt;
  </code></pre>