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.
<button ng-show="Temp" ng-click="TemplateE5()"> </button>
i donot want ng-click. it should fire automatically
<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">
</angucomplete-alt>
<button ng-show="Temp" ng-click="TemplateE5()"> </button>
controller Side
$scope.TemplateE5 = function () {
$scope.users.Time = $scope.Temp.time;
$scope.users.Paper= $scope.Temp.paper;}
<angucomplete-alt id="Te1" ng-init="TemplateE5()"....... the other attributes.