TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Way.js – Simple two-way databinding

48 pointsby Xelomalmost 11 years ago

5 comments

krat0sprakharalmost 11 years ago
Was posted 3 days ago - <a href="https://news.ycombinator.com/item?id=8176672" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=8176672</a>
评论 #8192367 未加载
Lavinskialmost 11 years ago
<a href="http://knockoutjs.com/" rel="nofollow">http:&#x2F;&#x2F;knockoutjs.com&#x2F;</a> is also a great simple data binding lib but without any dependencies.
评论 #8193053 未加载
评论 #8192158 未加载
评论 #8192499 未加载
alzalmost 11 years ago
this is cool, but it&#x27;s a bit misleading to declare something &#x27;lightweight&#x27; if it has 5 dependencies including jquery and underscore
评论 #8201911 未加载
juliusalmost 11 years ago
I think AngularJS has a very strong 2-way databinding offering (with its many directives and implicit data-change detection).<p>It is actually possible to just use the databinding features of AngularJS without all the framework stuff. Just need a few lines of Javascript to get yourself a scope.<p>Or just use my code: <a href="https://github.com/julius/AngularLite" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;julius&#x2F;AngularLite</a>
the8472almost 11 years ago
An alternative to declaring bindings in HTML is to generate the forms with javascript and bind the data with d3js. 2-way binding should be achievable with d3&#x27;s support for event handlers. That should also provide more flexibility as you can always drop down to DOM APIS or include other Javascript-based form controls.