I have 2 functions in which 1 is called from the other
callfunction1()
$scope.function1 = function (data) {
$('#sample-model').modal('show');
};
function callfunction1(){
$scope.onClickSupport();
}
I am triggering the first function through a button but when ever the page is refreshed function 1 should be called which is not happeng with my code.Here on debugging the console is not enterring the callfunction1().Can anyone help me please.Thanks.
Just use like this
because on page reload you can initialize your controller view with a function call . so in html
After that call function 2.thanks hope it will help you..