/// /// import {Component, View, Input} from 'angular2/core'; import {NgClass} from 'angular2/common'; import {MeteorComponent} from 'angular2-meteor'; @Component({ selector: 'task' }) @View({ templateUrl: 'client/components/task.html', directives: [NgClass] }) export class TaskView extends MeteorComponent { @Input('data') task: Task; setChecked(checked) { this.call('setChecked', this.task._id, checked); } setAccess() { this.call('setPrivate', this.task._id, !this.task.private); } deleteTask() { this.call('deleteTask', this.task._id); } }