Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

Commit afcff49

Browse files
author
Kasper Lund
committed
chore(cleanup_todo): Clean-up the TODO sample.
1 parent 1a6d14c commit afcff49

File tree

3 files changed

+9
-18
lines changed

3 files changed

+9
-18
lines changed

demo/todo/pubspec.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ packages:
1010
path: "../.."
1111
relative: true
1212
source: path
13-
version: "0.9.4"
13+
version: "0.9.7"
1414
args:
1515
description: args
1616
source: hosted
@@ -50,11 +50,11 @@ packages:
5050
route_hierarchical:
5151
description: route_hierarchical
5252
source: hosted
53-
version: "0.4.10"
53+
version: "0.4.13"
5454
shadow_dom:
5555
description: shadow_dom
5656
source: hosted
57-
version: "0.9.1"
57+
version: "0.9.2"
5858
source_maps:
5959
description: source_maps
6060
source: hosted
@@ -66,11 +66,11 @@ packages:
6666
unittest:
6767
description: unittest
6868
source: hosted
69-
version: "0.9.3"
69+
version: "0.10.0"
7070
unmodifiable_collection:
7171
description: unmodifiable_collection
7272
source: hosted
73-
version: "0.9.2"
73+
version: "0.9.2+1"
7474
utf:
7575
description: utf
7676
source: hosted

demo/todo/web/main.dart

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,15 @@ import 'dart:html';
77

88
// Everything in the 'todo' library should be preserved by MirrorsUsed
99
@MirrorsUsed(
10-
targets: const['todo'],
10+
targets: const ['todo'],
1111
override: '*')
1212
import 'dart:mirrors';
1313

1414
main() {
15-
1615
print(window.location.search);
1716
var module = new Module()
18-
..type(TodoController)
19-
..type(PlaybackHttpBackendConfig);
17+
..type(TodoController)
18+
..type(PlaybackHttpBackendConfig);
2019

2120
// If these is a query in the URL, use the server-backed
2221
// TodoController. Otherwise, use the stored-data controller.
@@ -39,5 +38,5 @@ main() {
3938
module.type(HttpBackend, implementedBy: PlaybackHttpBackend);
4039
}
4140

42-
ngBootstrap(module:module);
41+
ngBootstrap(module: module);
4342
}

demo/todo/web/todo.dart

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,6 @@ class TodoController {
6868
serverController.init(this);
6969
}
7070

71-
// workaround for https://github.com/angular/angular.dart/issues/37
72-
dynamic operator [](String key) {
73-
if (key == 'newItem') {
74-
return newItem;
75-
}
76-
return null;
77-
}
78-
7971
add() {
8072
if (newItem.isEmpty) return;
8173

0 commit comments

Comments
 (0)