| 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 | |
| 24 import 'dart:html'; | 6 import 'dart:html'; |
| 25 | 7 |
| 26 main() { | 8 main() { |
| 27 | 9 |
| 28 print(window.location.search); | 10 print(window.location.search); |
| 29 var module = new Module() | 11 var module = new Module() |
| 30 ..type(TodoController) | 12 ..type(TodoController) |
| 31 ..type(PlaybackHttpBackendConfig); | 13 ..type(PlaybackHttpBackendConfig); |
| 32 | 14 |
| 33 // If these is a query in the URL, use the server-backed | 15 // If these is a query in the URL, use the server-backed |
| (...skipping 12 matching lines...) Expand all Loading... |
| 46 module.type(HttpBackend, implementedBy: RecordingHttpBackend); | 28 module.type(HttpBackend, implementedBy: RecordingHttpBackend); |
| 47 } | 29 } |
| 48 | 30 |
| 49 if (query == '?playback') { | 31 if (query == '?playback') { |
| 50 print('Using playback HttpBackend'); | 32 print('Using playback HttpBackend'); |
| 51 module.type(HttpBackend, implementedBy: PlaybackHttpBackend); | 33 module.type(HttpBackend, implementedBy: PlaybackHttpBackend); |
| 52 } | 34 } |
| 53 | 35 |
| 54 ngBootstrap(module:module); | 36 ngBootstrap(module:module); |
| 55 } | 37 } |
| OLD | NEW |