Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(54)

Unified Diff: third_party/pkg/angular/demo/todo/web/main.dart

Issue 1058283006: Update pubspecs and dependencies to get pkgbuild tests working. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/pkg/angular/demo/todo/web/index.html ('k') | third_party/pkg/angular/demo/todo/web/todo.css » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
-}
« no previous file with comments | « third_party/pkg/angular/demo/todo/web/index.html ('k') | third_party/pkg/angular/demo/todo/web/todo.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698