| Index: example/angular/routing/accessing_route_params_within_components/my_router.dart
|
| diff --git a/example/angular/routing/accessing_route_params_within_components/my_router.dart b/example/angular/routing/accessing_route_params_within_components/my_router.dart
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..68fc81a44d17fcc2f46b11934fa13ca87983feef
|
| --- /dev/null
|
| +++ b/example/angular/routing/accessing_route_params_within_components/my_router.dart
|
| @@ -0,0 +1,17 @@
|
| +library my_router;
|
| +
|
| +import 'package:angular/angular.dart';
|
| +
|
| +class MyRouteInitializer implements RouteInitializer {
|
| + init(Router router, ViewFactory view) {
|
| + router.root
|
| + ..addRoute(
|
| + name: 'book',
|
| + path: '/book/:bookId',
|
| + mount: (Route route) => route
|
| + ..addRoute(
|
| + name: 'show',
|
| + path: '/show',
|
| + enter: view('views/show_book.html')));
|
| + }
|
| +}
|
|
|