Skip to content

Instantly share code, notes, and snippets.

@jfroffice
Created November 1, 2014 14:12
Show Gist options
  • Save jfroffice/5868ab468a9dc42c3d16 to your computer and use it in GitHub Desktop.
Save jfroffice/5868ab468a9dc42c3d16 to your computer and use it in GitHub Desktop.
AngularJS 1.3
<div ng-controller="SantaTodoController">
<input type="text" ng-model="newTodoTitle">
<button ng-click="addTodo()">+</button>
<tab-container>
<tab-pane title="Tobias">
<div ng-repeat="todo in todosOf('tobias')">
<input type="checkbox"
ng-model="todo.done">
{{todo.title}}
<button ng-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