Commit 91ddd323 authored by Pascal Hartig's avatar Pascal Hartig

AngularDart: Upgrade to 0.9.4

parent 3547a879
......@@ -8,7 +8,7 @@ packages:
angular:
description: angular
source: hosted
version: "0.9.3"
version: "0.9.4"
args:
description: args
source: hosted
......@@ -20,7 +20,7 @@ packages:
collection:
description: collection
source: hosted
version: "0.9.0"
version: "0.9.1"
di:
description: di
source: hosted
......@@ -64,7 +64,7 @@ packages:
unittest:
description: unittest
source: hosted
version: "0.9.2+1"
version: "0.9.3"
unmodifiable_collection:
description: unmodifiable_collection
source: hosted
......
......@@ -36,7 +36,9 @@
</ul>
</section>
<footer id="footer" ng-hide="!todo.total()" ng-cloak>
<span id="todo-count"><strong>{{todo.remaining()}}</strong> {{todo.itemsLeftText}}</span>
<span id="todo-count"><strong>{{todo.remaining()}}</strong>
<ng-pluralize count="todo.remaining()" when="{ one: 'item left', other: 'items left' }"></ng-pluralize>
</span>
<button id="clear-completed" ng-click="todo.clearCompleted()" ng-if="todo.completed() > 0">Clear completed ({{todo.completed()}})</button>
</footer>
</section>
......
......@@ -116,10 +116,6 @@ class TodoController {
items.forEach((i) => i.completed = value);
}
String get itemsLeftText {
return 'item' + (remaining() != 1 ? 's' : '') + ' left';
}
void editTodo(Item item) {
editedItem = item;
previousItem = item.clone();
......
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