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

Side by Side Diff: example/angular/routing/accessing_router_in_controller/main.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 // 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 import 'my_controller.dart' show MyController;
8
9
10 class MyAppModule extends Module {
11 MyAppModule() {
12 type(MyController);
13 type(RouteInitializer, implementedBy: MyRouteInitializer);
14 factory(NgRoutingUsePushState,
15 (_) => new NgRoutingUsePushState.value(false));
16 }
17 }
18
19 main() {
20 ngBootstrap(module: new MyAppModule());
21 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698