Index: example/angular/routing/redirecting_to_a_new_route/main.dart |
diff --git a/example/angular/routing/redirecting_to_a_new_route/main.dart b/example/angular/routing/redirecting_to_a_new_route/main.dart |
new file mode 100644 |
index 0000000000000000000000000000000000000000..626fe8bf51719caa1c5e2ce106f4b6f6d6c61afd |
--- /dev/null |
+++ b/example/angular/routing/redirecting_to_a_new_route/main.dart |
@@ -0,0 +1,20 @@ |
+// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE file. |
+ |
+import 'package:angular/angular.dart'; |
+import 'my_router.dart' show MyRouteInitializer; |
+import 'my_controller.dart' show MyController; |
+ |
+class MyAppModule extends Module { |
+ MyAppModule() { |
+ type(MyController); |
+ type(RouteInitializer, implementedBy: MyRouteInitializer); |
+ factory(NgRoutingUsePushState, |
+ (_) => new NgRoutingUsePushState.value(false)); |
+ } |
+} |
+ |
+main() { |
+ ngBootstrap(module: new MyAppModule()); |
+} |