Commit 77b54786 authored by Ariel Ben Horesh's avatar Ariel Ben Horesh Committed by Sindre Sorhus

Close GH-176: Changed Angular bindings so they will not be visible to the user...

Close GH-176: Changed Angular bindings so they will not be visible to the user prior to expression rendering..
parent a7949c8c
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
<li ng-repeat="todo in todos" ng-dblclick="editTodo(todo)" ng-class="{done: todo.done, editing: todo.editing}"> <li ng-repeat="todo in todos" ng-dblclick="editTodo(todo)" ng-class="{done: todo.done, editing: todo.editing}">
<div class="view"> <div class="view">
<input type="checkbox" class="toggle" name="todo.done" ng-model="todo.done"> <input type="checkbox" class="toggle" name="todo.done" ng-model="todo.done">
<label>{{todo.title}}</label> <label ng-bind="todo.title">Loading...</label>
<a class="destroy" ng-click="removeTodo(todo)"></a> <a class="destroy" ng-click="removeTodo(todo)"></a>
</div> </div>
<form ng-submit="finishEditing(todo)"> <form ng-submit="finishEditing(todo)">
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
</ul> </ul>
</section> </section>
<footer ng-show="todos.length"> <footer ng-show="todos.length">
<a id="clear-completed" ng-click="clearDoneTodos()" ng-show="doneTodos().length">Clear {{doneTodos().length}} items</a> <a id="clear-completed" ng-click="clearDoneTodos()" ng-show="doneTodos().length" ng-bind-template="Clear {{doneTodos().length}} items"></a>
<div id="todo-count"> <div id="todo-count">
<ng-pluralize count="remainingTodos().length" when="todoForms"></ng-pluralize> <ng-pluralize count="remainingTodos().length" when="todoForms"></ng-pluralize>
</div> </div>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment