[ALOY-159] Assign controller inheritance from markup via "parentController"
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | High |
Status | Resolved |
Resolution | Fixed |
Resolution Date | 2012-08-06T09:27:03.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | XML |
Labels | n/a |
Reporter | Tony Lukasavage |
Assignee | Unknown |
Created | 2012-08-06T07:47:22.000+0000 |
Updated | 2018-03-07T22:25:56.000+0000 |
Description
The code for assigning the parent controller in controllers is hidden. To give developers access to change the parent controller, they should be able to use theindex.xml
<Alloy parentController="MyController">
<!-- the rest of the markup -->
</Alloy>
index.js (generated section, not done by developer)
function Controller() {
Alloy.getController('MyController').call(this);
var $ = this;
// the rest of the view and controller code
}
Comments
No comments