Hacker News new | ask | show | jobs
by amalag 4216 days ago
Do you do databinding? I like KnockoutJS too, but to me it is purely limited to making a page more interactive, not much with back-end integration.
2 comments

Knockout doesn't have built-ins to wire up UI actions automatically to CRUD calls, but the portion of that you end up having to implement is usually extremely small.

As far a wiring up objects to knockout observables you have two options:

1) use the mapping plugin. I tend to stay away from this, as it makes everything on objects observable. Not bad per-se, but I like more control.

2) define your own model...its easy: https://gist.github.com/jdc0589/c48c2355302390ad954b

My team does data-binding with it via its mapping plugin. It's very powerful to use if you're working with json data to/from your server.