user2516917 user2516917 - 6 months ago 10
AngularJS Question

Using ng-click to call two different functions

Is there a way i can get ng-click to call two functions?

i would like something along the lines of

ng-click ="{search(),match()}"


instead of how i have it now, which is:

ng-click = "search()"

Answer

You can call multiple functions with ';'

ng-click="search(); match()"