[ALOY-1482] Data binding: Support deep binding of model object attributes
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | None |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2016-04-24T01:30:55.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:18:27.000+0000 |
Updated | 2016-08-02T17:58:41.000+0000 |
Description
I'd like to be able to do what ALOY-932 warns you not to:
<Alloy>
<Model src="mine" />
<Label text="{mine.attribute.property.thing}" />
</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) Deep binding of model attributes is now possible. Tested using the tests in the Alloy repo. Created a model with properties inside attributes and was able to access them using the
model.attribute.property
method.