Amanda Watson
Amanda Watson

Reputation: 370

Is there a way to use multiple ng-click's on a single button?

This is my current attempt, both do not work at the same time

    <button ng-click="actionType=false" ng-click="mapValues()">Back</button> 

Upvotes: 0

Views: 33

Answers (1)

Erti-Chris Eelmaa
Erti-Chris Eelmaa

Reputation: 26308

Just chain them:

  <button ng-click="mapValues(); actionType=false;">Back</button> 

Upvotes: 3

Related Questions