-
-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to spread an object to bindables #1477
Comments
Yes, please. Most of my Aurelia applications are littered with redundant bind statements mapping to property names in objects. |
One question we haven't answered since the first efforts long ago is what happens when a new property is added. If we are to ignore, this feature is easy to implement but there will be mis-expectation. If we are to subscribe & notify, we don't have a way to subscribe in a proper way. Also, it's unclear what to expect when spreading a mixture of bindables and non-bindables on an object. Says there's a custom element <let object.bind="{ value: 1, id: 'hello' }"></let>
<el ...object></el> Where should the properties in the |
@bigopon - I was only thinking the spread to work on CE not native elements as well (for first phase) |
If we are to do this, we can also do spreading based on host: if a CE host then spread into the view model, and if not, spread into the host element. |
🙋 Feature Request
When looping through sometimes I would like to spread the object I am looping through on the component rather than oen by one
🤔 Expected Behavior
😯 Current Behavior
💁 Possible Solution
Allow some form of spread to bind al properties from object that match
🔦 Context
💻 Examples
The text was updated successfully, but these errors were encountered: