Index: third_party/pkg/angular/demo/todo/web/main.dart |
diff --git a/third_party/pkg/angular/demo/todo/web/main.dart b/third_party/pkg/angular/demo/todo/web/main.dart |
deleted file mode 100644 |
index 3f34f0a85b6dfd42643db0925ce89c7a42a03b99..0000000000000000000000000000000000000000 |
--- a/third_party/pkg/angular/demo/todo/web/main.dart |
+++ /dev/null |
@@ -1,42 +0,0 @@ |
-import 'package:di/di.dart'; |
-import 'package:angular/angular.dart'; |
-import 'package:angular/playback/playback_http.dart'; |
-import 'todo.dart'; |
- |
-import 'dart:html'; |
- |
-// Everything in the 'todo' library should be preserved by MirrorsUsed. |
-@MirrorsUsed( |
- targets: const ['todo'], |
- override: '*') |
-import 'dart:mirrors'; |
- |
-main() { |
- print(window.location.search); |
- var module = new Module() |
- ..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); |
- } else { |
- module.type(ServerController, implementedBy: NoServerController); |
- } |
- |
- if (query == '?record') { |
- print('Using recording HttpBackend'); |
- var wrapper = new HttpBackendWrapper(new HttpBackend()); |
- module.value(HttpBackendWrapper, new HttpBackendWrapper(new HttpBackend())); |
- module.type(HttpBackend, implementedBy: RecordingHttpBackend); |
- } |
- |
- if (query == '?playback') { |
- print('Using playback HttpBackend'); |
- module.type(HttpBackend, implementedBy: PlaybackHttpBackend); |
- } |
- |
- ngBootstrap(module: module); |
-} |