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

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

Issue 148453003: Updating Angular version (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 11 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/index.html ('k') | third_party/pkg/angular/demo/todo/pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/pkg/angular/demo/todo/main.dart
diff --git a/third_party/pkg/angular/demo/todo/main.dart b/third_party/pkg/angular/demo/todo/main.dart
deleted file mode 100644
index 69c654d17ae3b3d8a57f3ac7181f1a2475a954b9..0000000000000000000000000000000000000000
--- a/third_party/pkg/angular/demo/todo/main.dart
+++ /dev/null
@@ -1,37 +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';
-
-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);
- } 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/index.html ('k') | third_party/pkg/angular/demo/todo/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698