Titanium JIRA Archive
Alloy (ALOY)

[ALOY-1481] Data binding: Support binding multiple models to the same view

GitHub Issuen/a
TypeNew Feature
PriorityNone
StatusClosed
ResolutionFixed
Resolution Date2016-04-24T01:31:05.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:15:40.000+0000
Updated2016-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>

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) 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.

JSON Source