Skip to content

Instantly share code, notes, and snippets.

@jfroffice
Created November 1, 2014 14:14
Show Gist options
  • Save jfroffice/4a0782d6289ae1f25503 to your computer and use it in GitHub Desktop.
Save jfroffice/4a0782d6289ae1f25503 to your computer and use it in GitHub Desktop.
AngularJS 2.0
<div>
<input type="text" [value]="newTodoTitle">
<button (click)="addTodo()">+</button>
<tab-container>
<tab-pane title="Good kids">
<div [ng-repeat|todo]="todosOf('good')">
<input type="checkbox"
[checked]="todo.done">
{{todo.title}}
<button (click)="deleteTodo(todo)">
X
</button>
</div>
<tab-pane>
</tab-container>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment