[ALOY-1481] Data binding: Support binding multiple models to the same view
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | None |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2016-04-24T01:31:05.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 5.4.0, alloy 1.9.0 |
Components | Models |
Labels | n/a |
Reporter | Fokke Zandbergen |
Assignee | Feon Sua Xin Miao |
Created | 2016-03-31T14:15:40.000+0000 |
Updated | 2016-08-02T17:54:06.000+0000 |
Description
I'd like to be able to bind multiple models to the same view, even property:
<Alloy>
<Model src="a" />
<Model src="b" />
<Label text="{a.hello} {b.world}" />
</Alloy>
Will be done as part of ALOY-1480
Combined PR for ALOY-1478, ALOY-1480, ALOY-1481 and ALOY-1482: https://github.com/appcelerator/alloy/pull/780
PR merged.
Verified implemented, using: MacOS 10.11.5 (15F31a) Ti SDK 5.4.0.v20160801022303 Appc NPM 4.2.7 Appc CLI 5.4.0-37 Alloy 1.9.1 Xcode 7.3.1 (7D1014) Multiple models can be bound to the same element or property. Tested using an expanded version of the provided case as well as test cases in the Alloy repo.