title: How to use window.onload in angular js controller?
body: <p>How to use <code>window.onload</code> function inside a controller.</p>
  
  <pre><code> window.onload= function() { 
      console.log("Hi Page loaded")
     };
  </code></pre>
  
  <p>The controller is not applicable for the full page. 
  I want to execute a function after my controller loads at-least.</p>