permalink

1

Traceur-TodoMVC – a Backbone.js app written with ES6

I’m pleased to present a re-write of the Backbone TodoMVC app using ECMAScript 6 features such as classes, modules and fat-arrow syntax.

Check out the literate version of the source code as we’ve filled it with helpful comments. The example of how to elegantly use destructuring assignment in const { Model, View, Collection, Router, LocalStorage } = Backbone; is one of my favorites.

caps

A preview of the Docco generated literate source code

Our usage of ES6 features is made possible using Google’s Traceur compiler. This ES6 implementation was authored by Addy Osmani, Pascal Hartig, Sindre Sorhus, Stephen Sawchuck, Rick Waldron and Domenic Denicola.

You can run the completed app, watch the project repository or look at the original ES5 implementation.

1 Comment

  1. Pingback: Best of JavaScript, HTML & CSS – Week of August 19, 2013 | Flippin' Awesome

Leave a Reply

Required fields are marked *.