OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. |
| 4 |
| 5 import 'package:angular/angular.dart'; |
| 6 import 'my_router.dart' show MyRouteInitializer; |
| 7 |
| 8 class MyAppModule extends Module { |
| 9 MyAppModule() { |
| 10 type(RouteInitializer, implementedBy: MyRouteInitializer); |
| 11 factory(NgRoutingUsePushState, |
| 12 (_) => new NgRoutingUsePushState.value(false)); |
| 13 } |
| 14 } |
| 15 |
| 16 main() { |
| 17 ngBootstrap(module: new MyAppModule()); |
| 18 } |
OLD | NEW |