I'm submitting a feature request
Current behavior:
Currently there are two options to develop a custom-attribute in aurelia. One to use dynamicOptions and one to not.
If dynamicOptions is not used, I can mark a bindable as primaryProperty, but in other way, when dynamicOptions is used, I can't find a way to specify a primaryProperty. And if I use dynamicOptions and also define a @bindable, the dynamicOptions stops working.
Expected/desired behavior:
I think it will be a good possibility to be able to use both @dynamicOptions and @bindable({ primaryProperty: true }) ... in a component or attribute. Because I have some predefined properties that I want to have configurations like primaryProperty on them and also I want to be able to receive dynamic options.
- What is the motivation / use case for changing the behavior?
Being able to have benefits of @dynamicOptions and primaryPropert in a place.
I'm submitting a feature request
Library Version:
v1.0.2
Operating System:
Windows 10
Node Version:
v12.5.0
NPM Version:
v6.9.0
Aurelia CLI Version
CLI v1.0.2
Browser:
all
Language:
ESNext
Current behavior:
Currently there are two options to develop a custom-attribute in aurelia. One to use dynamicOptions and one to not.
If
dynamicOptionsis not used, I can mark abindableasprimaryProperty, but in other way, whendynamicOptionsis used, I can't find a way to specify aprimaryProperty. And if I usedynamicOptionsand also define a@bindable, thedynamicOptionsstops working.Expected/desired behavior:
I think it will be a good possibility to be able to use both
@dynamicOptionsand@bindable({ primaryProperty: true }) ...in a component or attribute. Because I have some predefined properties that I want to have configurations likeprimaryPropertyon them and also I want to be able to receive dynamic options.Being able to have benefits of
@dynamicOptionsandprimaryPropertin a place.