MrSolution MrSolution - 1 year ago 88
Java Question

how can i get 2 functions in one ng-click?

I want to get 2 functions in one ng-click.

Here is the code:

<button class="cButtonSpeichern" ng-click="saveUser()">Speichern</button>

and i want to add this function.


can someone help me?

Answer Source

Make a method:

onSpeichernClick() {

then you can use <button class="cButtonSpeichern" ng-click="onSpeichernClick()">Speichern</button>

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download