| OLD | NEW |
| 1 import 'package:di/di.dart'; | 1 import 'package:di/di.dart'; |
| 2 import 'package:angular/angular.dart'; | 2 import 'package:angular/angular.dart'; |
| 3 import 'package:angular/playback/playback_http.dart'; | 3 import 'package:angular/playback/playback_http.dart'; |
| 4 import 'todo.dart'; | 4 import 'todo.dart'; |
| 5 | 5 |
| 6 @MirrorsUsed(targets: const[ |
| 7 'angular', |
| 8 'angular.core', |
| 9 'angular.core.dom', |
| 10 'angular.filter', |
| 11 'angular.perf', |
| 12 'angular.directive', |
| 13 'angular.routing', |
| 14 'angular.core.parser', |
| 15 'todo', |
| 16 'perf_api', |
| 17 'List', |
| 18 'NodeTreeSanitizer', |
| 19 'PlaybackHttpBackendConfig' |
| 20 ], |
| 21 override: '*') |
| 22 import 'dart:mirrors'; |
| 23 |
| 6 import 'dart:html'; | 24 import 'dart:html'; |
| 7 | 25 |
| 8 main() { | 26 main() { |
| 9 | 27 |
| 10 print(window.location.search); | 28 print(window.location.search); |
| 11 var module = new Module() | 29 var module = new Module() |
| 12 ..type(TodoController) | 30 ..type(TodoController) |
| 13 ..type(PlaybackHttpBackendConfig); | 31 ..type(PlaybackHttpBackendConfig); |
| 14 | 32 |
| 15 // If these is a query in the URL, use the server-backed | 33 // If these is a query in the URL, use the server-backed |
| (...skipping 12 matching lines...) Expand all Loading... |
| 28 module.type(HttpBackend, implementedBy: RecordingHttpBackend); | 46 module.type(HttpBackend, implementedBy: RecordingHttpBackend); |
| 29 } | 47 } |
| 30 | 48 |
| 31 if (query == '?playback') { | 49 if (query == '?playback') { |
| 32 print('Using playback HttpBackend'); | 50 print('Using playback HttpBackend'); |
| 33 module.type(HttpBackend, implementedBy: PlaybackHttpBackend); | 51 module.type(HttpBackend, implementedBy: PlaybackHttpBackend); |
| 34 } | 52 } |
| 35 | 53 |
| 36 ngBootstrap(module:module); | 54 ngBootstrap(module:module); |
| 37 } | 55 } |
| OLD | NEW |