title: How to call function without ng-click
body: <p>How we can call function in angularjs without ng-click. I tried ng-show but my function is running again and again.  Can any one help me.
  Basically i want to file function without ng-click.</p>
  
  <pre><code>    &lt;button ng-show="Temp" ng-click="TemplateE5()"&gt; &lt;/button&gt;  
  </code></pre>
  
  <p>i donot want ng-click. it should fire automatically</p>
  
  <pre><code>&lt;angucomplete-alt id="Te1" placeholder="Please type name of template "
      pause="100"  maxlength="20"  input-changed="test"
      selected-object="Temp" local-data="myTemplate"
      search-fields="NAME" title-field="NAME" minlength="0"
      input-class="form-control form-control-small"
      match-class="highlight"&gt;
  &lt;/angucomplete-alt&gt;
  
  &lt;button ng-show="Temp" ng-click="TemplateE5()"&gt; &lt;/button&gt; 
  </code></pre>
  
  <p>controller Side  </p>
  
  <pre><code>    $scope.TemplateE5 = function () {
      $scope.users.Time = $scope.Temp.time;
      $scope.users.Paper= $scope.Temp.paper;}
  </code></pre>