Titanium JIRA Archive
Alloy (ALOY)

[ALOY-1482] Data binding: Support deep binding of model object attributes

GitHub Issuen/a
TypeNew Feature
PriorityNone
StatusClosed
ResolutionFixed
Resolution Date2016-04-24T01:30:55.000+0000
Affected Version/sn/a
Fix Version/sRelease 5.4.0, alloy 1.9.0
ComponentsModels
Labelsn/a
ReporterFokke Zandbergen
AssigneeFeon Sua Xin Miao
Created2016-03-31T14:18:27.000+0000
Updated2016-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>

Comments

  1. Fokke Zandbergen 2016-03-31

    Will be done as part of ALOY-1480
  2. Fokke Zandbergen 2016-03-31

    Combined PR for ALOY-1478, ALOY-1480, ALOY-1481 and ALOY-1482: https://github.com/appcelerator/alloy/pull/780
  3. Feon Sua Xin Miao 2016-04-24

    PR merged.
  4. Eric Wieber 2016-08-02

    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.

JSON Source