Skip to content

Instantly share code, notes, and snippets.



Last active Mar 27, 2017
What would you like to do?
Aurelia value-converter allowing two string values to be used as a checkbox boolean
export class CheckedValueValueConverter {
toView(value, trueValue) {
return value === trueValue;
fromView(value, trueValue, falseValue) {
return value ? trueValue : falseValue
<input type="checkbox" checked.bind="color | checkedValue:'Green':'Blue'" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.