-
-
Notifications
You must be signed in to change notification settings - Fork 98
Closed
Labels
Description
I should be able to tell Aurelia that an attribute's value should be treated as a boolean. This should work for both simple custom attributes as well as attributes on custom elements.
Usage:
<foo bar="false"></foo>Custom Element VM:
export class Foo {
@bindable({ isBoolean: true }) bar;
}If the custom attribute or custom element tells Aurelia that it expects its value to be a boolean, the Aurelia will coerce the value to a boolean before setting the VM property and calling any changed callbacks.
kevmeister68, andrevlins, TimVevida, thomas-darling, glen-84 and 6 more