title: Invoke function in HTML which is defined in controller
body: <p><strong>How is it possible to invoke a function when HTML page is loaded</strong>? Right now, the function call is made manually by pressing the button, like:</p>
  
  <pre><code>&lt;p&gt;
      {{address}}
  &lt;/p&gt;
  
  &lt;button class="btn btn-primary checkout" ng-click="getAddress()"&gt;
       &lt;i class="fa"&gt; Get address&lt;/i&gt;
  &lt;/button&gt;
  </code></pre>
  
  <p>It is also possible to call function using {{getAddress()}}. But, as expected it causes infinite loop.</p>
  
  <p>getAddress() makes call to a backend, gets data and populates address on $scope ($scope.address)</p>
  
  <p>It would be nice to load it automatically and get rid off the button.</p>