diff --git a/demo/todo/pubspec.lock b/demo/todo/pubspec.lock index dca084f5b..927673dc7 100644 --- a/demo/todo/pubspec.lock +++ b/demo/todo/pubspec.lock @@ -10,7 +10,7 @@ packages: path: "../.." relative: true source: path - version: "0.9.4" + version: "0.9.7" args: description: args source: hosted @@ -50,11 +50,11 @@ packages: route_hierarchical: description: route_hierarchical source: hosted - version: "0.4.10" + version: "0.4.13" shadow_dom: description: shadow_dom source: hosted - version: "0.9.1" + version: "0.9.2" source_maps: description: source_maps source: hosted @@ -66,11 +66,11 @@ packages: unittest: description: unittest source: hosted - version: "0.9.3" + version: "0.10.0" unmodifiable_collection: description: unmodifiable_collection source: hosted - version: "0.9.2" + version: "0.9.2+1" utf: description: utf source: hosted diff --git a/demo/todo/web/main.dart b/demo/todo/web/main.dart index 5c67d8084..3f34f0a85 100644 --- a/demo/todo/web/main.dart +++ b/demo/todo/web/main.dart @@ -5,18 +5,17 @@ import 'todo.dart'; import 'dart:html'; -// Everything in the 'todo' library should be preserved by MirrorsUsed +// Everything in the 'todo' library should be preserved by MirrorsUsed. @MirrorsUsed( - targets: const['todo'], + targets: const ['todo'], override: '*') import 'dart:mirrors'; main() { - print(window.location.search); var module = new Module() - ..type(TodoController) - ..type(PlaybackHttpBackendConfig); + ..type(TodoController) + ..type(PlaybackHttpBackendConfig); // If these is a query in the URL, use the server-backed // TodoController. Otherwise, use the stored-data controller. @@ -39,5 +38,5 @@ main() { module.type(HttpBackend, implementedBy: PlaybackHttpBackend); } - ngBootstrap(module:module); + ngBootstrap(module: module); } diff --git a/demo/todo/web/todo.dart b/demo/todo/web/todo.dart index d287be25c..6b535f93c 100644 --- a/demo/todo/web/todo.dart +++ b/demo/todo/web/todo.dart @@ -68,14 +68,6 @@ class TodoController { serverController.init(this); } - // workaround for https://github.com/angular/angular.dart/issues/37 - dynamic operator [](String key) { - if (key == 'newItem') { - return newItem; - } - return null; - } - add() { if (newItem.isEmpty) return;