[AC-3262] Support multiple views against one controller in alloy MVC
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | n/a |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2014-03-17T02:12:49.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Alloy |
Labels | n/a |
Reporter | sarbari mukherjee |
Assignee | Ritu Agrawal |
Created | 2014-02-17T07:11:09.000+0000 |
Updated | 2016-03-08T07:57:40.000+0000 |
Description
I am using Titanium : 3.1.3 SDK. and developing applications on IOS7 and android 4.2. I am following Alloy MVC framework in my developement. I would like to know if it is possible to support multiple views with one controller. Consider the below scenario.:-I have 2 countries. I have a base controller and a view. From the base controller, I need to open different views for different countries but both the child views should have the same controller.
Example:-
From BaseController.js I would like to open ChildController_US.xml for USA and childController_UK.xml for UK.I would like to have 1 single controller childController.js
This question is better suited for Q&A forum so I would suggest you to post it there.
It would be great if you can provide a code sample (does not need to work obviously) that demonstrates how the requested feature would be used. We can then evaluate this feature request more meaningfully.
Resolving this ticket as the reporter has not provided requested information on this improvement request.