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

Unified Diff: third_party/pkg/angular/lib/routing/ng_bind_route.dart

Issue 180873006: Update the Angular/DI tests to latest from github. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Review feedback Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/pkg/angular/lib/routing/module.dart ('k') | third_party/pkg/angular/lib/routing/ng_view.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/pkg/angular/lib/routing/ng_bind_route.dart
diff --git a/third_party/pkg/angular/lib/routing/ng_bind_route.dart b/third_party/pkg/angular/lib/routing/ng_bind_route.dart
index 8ffdef3d4b21aab635ce1c1a4dcfc771446c14cf..7305401cf904865b964d6cd48f57dbb9cd9f96bc 100644
--- a/third_party/pkg/angular/lib/routing/ng_bind_route.dart
+++ b/third_party/pkg/angular/lib/routing/ng_bind_route.dart
@@ -28,8 +28,7 @@ part of angular.routing;
selector: '[ng-bind-route]',
map: const {
'ng-bind-route': '@routeName'
- }
-)
+ })
class NgBindRouteDirective implements RouteProvider {
Router _router;
String routeName;
@@ -41,13 +40,9 @@ class NgBindRouteDirective implements RouteProvider {
/// Returns the parent [RouteProvider].
RouteProvider get _parent => _injector.parent.get(RouteProvider);
- Route get route {
- if (routeName.startsWith('.')) {
- return _parent.route.getRoute(routeName.substring(1));
- } else {
- return _router.root.getRoute(routeName);
- }
- }
+ Route get route => routeName.startsWith('.') ?
+ _parent.route.getRoute(routeName.substring(1)) :
+ _router.root.getRoute(routeName);
Map<String, String> get parameters {
var res = <String, String>{};
« no previous file with comments | « third_party/pkg/angular/lib/routing/module.dart ('k') | third_party/pkg/angular/lib/routing/ng_view.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698