user2516917 user2516917 - 1 year ago 58
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 Source

You can call multiple functions with ';'

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