be done?"/> View current: ko.observable(), add: function (event) { if (event.keyCode === 13) { var newTodo = new Todo(this.current()); this.todos.push(newTodo); this.current(""); } }, View-Model 16
be done?"/> View current: ko.observable(), add: function (event) { if (event.keyCode === 13) { var newTodo = new Todo(this.current()); this.todos.push(newTodo); this.current(""); } }, View-Model Model var Todo = function (text) { this.content = ko.observable(text); this.order = ko.observable(); this.done = ko.observable(false); } 16
we’re manually doing things the computer should do for us. • The more complex our views, the more work this is for us. • Backbone is great for simple apps and rocket scientists. For large apps by normal people, Bb might work but there are other options. 20