Skip to content

Instantly share code, notes, and snippets.

@aripalo
Last active August 29, 2015 14:16
Show Gist options
  • Save aripalo/ecd455bb3584bcceb644 to your computer and use it in GitHub Desktop.
Save aripalo/ecd455bb3584bcceb644 to your computer and use it in GitHub Desktop.
Angular 2.x template syntax as revealed on October 28th 2014 at http://jaxenter.com/angular-2-0-112094.html
<!-- as seen October 28th 2014 on http://jaxenter.com/angular-2-0-112094.html -->
<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