/*jshint esnext:true */
/*jshint esnext:true */
You can run the completed app, watch the project repository or look at the original ES5 implementation.
import {AppView, Filters} from './todo-app';
Load the application once the DOM is ready, using jQuery.ready
() => { ... }
which you’ll see below is the statement form of
the arrow function syntax. Practically speaking, it is lightweight
sugar for function () { ... }.bind(this)
.
Apart from containing statements instead of an automatically-returned expression, it has the same properties as the expression-form arrow functions we talked about above.
$(() => {
Finally, we kick things off by creating the App.
new AppView();
new Filters();
Backbone.history.start();
});