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

AngularDart: Upgrade to 0.9.4

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