I\'m trying to build a calculator for daycare prices in Angular.
Every location in the company franchise has separate prices for every day. So my thinking was to bui
It seems ng-true-value
does not accept non-constant expressions. From the docs(v1.3.0):
Some attributes used in conjunction with ngModel (such as ngTrueValue or ngFalseValue) will only accept constant expressions.
Examples using constant expressions include:
Examples of non-constant expressions include:
An ideal workaround probably would be calling a Controller method on ng-click
or ng-change
inside which you can analyse all the checkboxes for truthy or non-truthy values.