[ALOY-491] Alloy bind() function for creating data binding in code
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | High |
Status | Resolved |
Resolution | Duplicate |
Resolution Date | 2014-07-07T16:33:55.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Models, Runtime |
Labels | n/a |
Reporter | Tony Lukasavage |
Assignee | Unknown |
Created | 2013-01-29T16:54:12.000+0000 |
Updated | 2018-03-07T22:25:48.000+0000 |
Description
The only way to create data binding at this point is in markup. It would be nice to be able to create this binding in code as well. I'll have to do some thinking, research, and solicitation of feedback, but it might look something like this:
Alloy.bind($.someLabel, 'text', Alloy.Models.someModel, 'modelProperty');
It should be a function on the Alloy namespace somewhere, not on the proxies to avoid the overhead of adding functions to proxy objects.
Duplicate of ALOY-931