I'm trying to do something like this:
<form name="myForm" ng-controller="Ctrl">
Value1: <input type="checkbox" ng-number="100"> <br/>
Value2: <input type="checkbox" ng-number="250"
add 5% to the total sum of the checked boxes: <input type="checkbox" ng-percent=".05"
<br/>
total value = {{how do you do this?}}
</form>
So if Value1 is checked the total value is "100", if both values are checked then "350", or if the "add 5%" is also checked then: total value = ({{total sum}} + ({{total sum}} * .05))
I can do this with jQuery but I'm having trouble wrapping my head around how to do it the 'Angular' way.
ng-numberandng-percentdo?modelor, at least, in thecontrollerand then edited via the template, if the need be.