[ALOY-1061] Alloy: Require a specific view via XML
|Labels||require, views, xml|
DescriptionIn JS you can get a specific controller view (including its children of course) by passing its ID to
I'd like to do the same in XML:var view = Alloy.createController('foo').getView('bar');
Please note that the implementation should only create the<Alloy> <Require src="foo" view="header"> <View id="someOtherContent">..</View> <Require src="foo" view="footer"> </Alloy>
foocontroller *once*, so that both the
footerview share the same controller. Otherwise it wouldn't make much sense since the actual benefit/use-case is that these 2 views can interact with/on each other while providing views at 2 or more different locations in te parent controller/view.
- Mauro Parra-Miranda 2014-06-30 Reported by [~fokke] (changed by jira).