| OLD | NEW |
| 1 /** | |
| 2 * Angular is a framework for building single page web applications. | |
| 3 * | |
| 4 * Further reading: | |
| 5 * | |
| 6 * - AngularJS [Overview](http://www.angularjs.org) | |
| 7 * - [Tutorial](https://github.com/angular/angular.dart.tutorial/wiki) | |
| 8 * - [Mailing List](http://groups.google.com/d/forum/angular-dart?hl=en) | |
| 9 * | |
| 10 */ | |
| 11 library angular; | 1 library angular; |
| 12 | 2 |
| 13 import 'dart:html' as dom; | |
| 14 import 'dart:js' as js; | |
| 15 import 'package:di/di.dart'; | |
| 16 import 'package:di/dynamic_injector.dart'; | |
| 17 | 3 |
| 18 /** | 4 export 'package:angular/application.dart'; |
| 19 * If you are writing code accessed from Angular expressions, you must include | 5 export 'package:angular/core/module.dart'; |
| 20 * your own @MirrorsUsed annotation or ensure that everything is tagged with | 6 export 'package:angular/directive/module.dart'; |
| 21 * the Ng annotations. | 7 export 'package:angular/core/annotation.dart'; |
| 22 * | 8 export 'package:angular/introspection.dart'; |
| 23 * All programs should also include a @MirrorsUsed(override: '*') which | 9 export 'package:angular/formatter/module.dart'; |
| 24 * tells the compiler that only the explicitly listed libraries will | 10 export 'package:angular/routing/module.dart'; |
| 25 * be reflected over. | 11 export 'package:di/di.dart'; |
| 26 * | 12 export 'package:route_hierarchical/client.dart' hide childRoute; |
| 27 * This is a short-term fix until we implement a transformer-based solution | |
| 28 * which does not rely on mirrors. | |
| 29 */ | |
| 30 @MirrorsUsed(targets: const [ | |
| 31 'angular', | |
| 32 'angular.core', | |
| 33 'angular.core.dom', | |
| 34 'angular.filter', | |
| 35 'angular.perf', | |
| 36 'angular.directive', | |
| 37 'angular.routing', | |
| 38 'angular.core.parser.Parser', | |
| 39 'angular.core.parser.dynamic_parser', | |
| 40 'angular.core.parser.lexer', | |
| 41 'perf_api', | |
| 42 List, | |
| 43 dom.NodeTreeSanitizer, | |
| 44 ], | |
| 45 metaTargets: const [ | |
| 46 NgInjectableService, | |
| 47 NgDirective, | |
| 48 NgController, | |
| 49 NgComponent, | |
| 50 NgFilter | |
| 51 ]) | |
| 52 import 'dart:mirrors' show MirrorsUsed; | |
| 53 | 13 |
| 54 import 'package:angular/core/module.dart'; | |
| 55 import 'package:angular/core_dom/module.dart'; | |
| 56 import 'package:angular/directive/module.dart'; | |
| 57 import 'package:angular/filter/module.dart'; | |
| 58 import 'package:angular/perf/module.dart'; | |
| 59 import 'package:angular/routing/module.dart'; | |
| 60 | |
| 61 export 'package:di/di.dart'; | |
| 62 export 'package:angular/core/module.dart'; | |
| 63 export 'package:angular/core_dom/module.dart'; | |
| 64 export 'package:angular/core/parser/parser.dart'; | |
| 65 export 'package:angular/core/parser/lexer.dart'; | |
| 66 export 'package:angular/directive/module.dart'; | |
| 67 export 'package:angular/filter/module.dart'; | |
| 68 export 'package:angular/routing/module.dart'; | |
| 69 | |
| 70 part 'bootstrap.dart'; | |
| 71 part 'introspection.dart'; | |
| OLD | NEW |