Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(362)

Side by Side Diff: example/angular/routing/accessing_route_params_within_components/my_router.dart

Issue 135183008: First group of routing examples (Closed) Base URL: https://github.com/dart-lang/dart_by_example.git@master
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 library my_router;
2
3 import 'package:angular/angular.dart';
4
5 class MyRouteInitializer implements RouteInitializer {
6 init(Router router, ViewFactory view) {
7 router.root
8 ..addRoute(
9 name: 'book',
10 path: '/book/:bookId',
11 mount: (Route route) => route
12 ..addRoute(
pavelj 2014/01/21 21:59:59 indentation
13 name: 'show',
14 path: '/show',
15 enter: view('views/show_book.html')));
16 }
17 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698