| Index: third_party/pkg/angular/demo/todo/web/main.dart
|
| ===================================================================
|
| --- third_party/pkg/angular/demo/todo/web/main.dart (revision 33054)
|
| +++ third_party/pkg/angular/demo/todo/web/main.dart (working copy)
|
| @@ -5,23 +5,24 @@
|
|
|
| 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.
|
| var query = window.location.search;
|
| if (query.contains('?')) {
|
| - module.type(ServerController, implementedBy: HttpServerController);
|
| + module.type(ServerController);
|
| } else {
|
| module.type(ServerController, implementedBy: NoServerController);
|
| }
|
| @@ -38,5 +39,5 @@
|
| module.type(HttpBackend, implementedBy: PlaybackHttpBackend);
|
| }
|
|
|
| - ngBootstrap(module: module);
|
| + ngBootstrap(module:module);
|
| }
|
|
|