Search code examples
javascriptangularjsangularjs-ng-click

In which sequence or manner multiple functions is called if i call them inside ng-click?


I have this code.

<button type="button" ng-click="func1(); func2(); func3()">Click</button>

I want to know that how func1,func2, and func3 will be called? Is it according to their sequence or parallelly?


Solution

  • It's very simple, it will call in sequence.

    First func1() will be called and then func2() and then func3().