Skip to content

Comment on Rivets.js - Binding data to views

Comments

It would be great if we could just have Object.watch('property', callback) or similar method defined in ES.next.

I don't want to wrap my models with ugly frameworks, all I need is a way to fire a callback when my model changes.

There is a lot of talk on various MVC frameworks, but lets not forget that manual syncing of views and models has some advantages, e.g. you can improve performance by combining many subsequent DOM operations or by temporarily detaching the parent from DOM tree.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.