Permalink
59f88d7 Mar 1, 2016
1 contributor

Users who have contributed to this file

21 lines (15 sloc) 463 Bytes
import {Owner} from "./owner";
export class Todo {
constructor(public id: number, public description: string, private _completed: boolean, public owner: Owner) {
}
get completed() {
if (this.id == 1 && this._completed) {
// uncomment to see the change detector on the dev tools
//debugger;
}
return this._completed;
}
set completed(completed) {
this._completed = completed;
}
}