Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Re : Is there a plan to support MVVM style live two way live binding. Also Filters and converters?

$
0
0
I have a very basic idea implemented of what I was thinking about data linking in MVVM style http://jsfiddle.net/samarjit/3bR83.
It's a two way live binding without templates. Any changes to the model changes the content of text box and vice-versa.
  1. { "f_name": "change1", "l_name": "me" }
  1. <pre id="bounddata"></pre>
  2. <div id="app" data-can-container="true" >
  3. First Name:<input type="text" name="fname" id="fname" data-can-link="f_name" /><br/>
  4. Last Name:<input type="text" name="lname" id="lname" data-can-link="l_name" /><br/>
  5. Full Name (computed):<input type="text" name="fullname" id="fullname" data-can-link="fullName" /><br/>
  6. Email:<input type="text" name="email" id="email" data-can-link="email" />
  7. </div>


Viewing all articles
Browse latest Browse all 3491

Trending Articles