Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.
larukedi edited this page Dec 15, 2014 · 7 revisions

Basic Binding

Usage: $l.mvc.init(app, model)

<div id="test">
    <span lr-bind="prop.textContent: hello"></span>
    <span lr-bind="style.color: favoritecolor, prop.textContent: name"></span>
</div>
$l.ready(function() {
    var myModel = new $l.stack({
        hello: 'hi',
        name: 'eser',
        favoritecolor: 'orange'
    });
    $l.mvc.init('test', myModel);
});
Clone this wiki locally