todomvc
Version:
> Helping you select an MV\* framework
17 lines (13 loc) • 295 B
JavaScript
/*global define */
define([
'knockout'
], function (ko) {
'use strict';
// represent a single todo item
var Todo = function (title, completed) {
this.title = ko.observable(title);
this.completed = ko.observable(completed);
this.editing = ko.observable(false);
};
return Todo;
});