4 ms·
I cannot suggest KnockoutJS enough. Just throw the data to the client; your template is basically inside your HTML file. Knockout will take your development to
by mark242 15y ago
I cannot suggest KnockoutJS enough. Just throw the data to the client; your template is basically inside your HTML file. Knockout will take your development to a whole other level. My team is at the point where we're seriously doubting if our application servers will ever output HTML ever again. We use the RESTEasy framework to output XML and JSON.
Try KnockoutJS, just for one page, and you'll see how incredibly powerful and time-saving it can be. Your clients have just as much CPU power in their phones as you do in your app servers; let them handle the view rendering. Knockout is beautiful, simple, and extremely elegant.
- Torn 15y agoDoes it degrade gracefully?
- barkmadley 15y agoOf course not. At least not yet. The only missing piece is to bind the data that is already found in the html to the data found in the view-model object (or create the view-model object from the html, or some third strategy). This has been suggested a couple of times on the mailing list, but no-one has stepped up to the plate to implement it.