I have my checkbox input that sets the \"true\" value dynamically based on a variable trueVal, which is a string.
trueVal
Try this.
In Markup
In Controller
var trueValue = "my true' value"; var falseValue = false; var _model; $scope.dummyModel = function (val) { if (angular.isDefined(val)) { _model = val ? trueValue : falseValue } return _model === trueValue; }
Use _model to submit to the database.
_model