title: Show loader until page is fully loaded Angular 2+
body: <p>I am using ng2-admin theme for angular 2+. I am using API's to fetch data. The problem I am facing is that loader hides but data is still not loaded so the page first show skeleton of the page then load data. it looks odd.</p>
  
  <p>I want the loader to show until all the data is rendered on the page.</p>
  
  <p>First, I thought its the issue of API response but I see that API is completed it's just the browser rendering data which takes time.
  For an idea, you can see in this example</p>
  
  <pre><code>this.loader = ture    
  ApiCall.subscribe(response =&gt;{
      logic();
      this.loader = false;
  })
  </code></pre>
  
  <p>Loader gets hide but data is still rendering.</p>
  
  <p>Thanks in anticipation.</p>