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

Side by Side Diff: example/angular/routing/nesting_routes/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: Tweaks 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: 'articles',
10 path: '/articles',
11 mount: (Route route) => route
12 ..addRoute(
13 name: 'all',
14 path: '/all',
15 enter: view('views/all_articles.html'))
16 ..addRoute(
17 name: 'featured',
18 path: '/featured',
19 enter: view('views/featured_article.html')));
20 }
21 }
OLDNEW
« no previous file with comments | « example/angular/routing/nesting_routes/main.dart ('k') | example/angular/routing/nesting_routes/views/all_articles.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698