Skip to content

Instantly share code, notes, and snippets.

View abalmus's full-sized avatar

Andrei Balmus abalmus

View GitHub Profile
@abalmus
abalmus / TodoItem.js
Last active April 22, 2016 14:36
Aurelia Todo
let nextTodoId = 0;
export class TodoItem {
constructor(title) {
this.id = nextTodoId++;
this.title = title;
this.completed = false;
}
toggle() {
@abalmus
abalmus / app.html
Last active April 22, 2016 14:16 — forked from jdanyow/app.html
<template>
<form>
<label>view: <textarea value.bind="viewHtml" rows="8" cols="80"></textarea></label>
<label>view-model: <textarea value.bind="viewModelJs" rows="8" cols="80"></textarea></label>
<button type="submit" click.delegate="submit()">Submit</button>
<button type="button" click.delegate="remove()">Remove</button>
</form>
<div ref="container"></div>
</template>