Is there a way to add a new scope in an AngularJS template?
<button ng-click="modifier + 1 if inactive or modifier - 1 if inactive">{{someNumber + modifier}}</button>
Basically the button will have an 'active' state or 'inactive' state.
On 'active', the modifier will increase, on 'inactive' it will go back to normal.
But let's say I have 100 of these buttons. I can make variables like modifier-1, modifier-2,.... but that's not best practice.
How do I make a new scope within this template so I can keep modifier as a variable name throughout the 100 buttons?