| Index: third_party/pkg/angular/lib/routing/ng_bind_route.dart
|
| ===================================================================
|
| --- third_party/pkg/angular/lib/routing/ng_bind_route.dart (revision 33054)
|
| +++ third_party/pkg/angular/lib/routing/ng_bind_route.dart (working copy)
|
| @@ -28,7 +28,8 @@
|
| selector: '[ng-bind-route]',
|
| map: const {
|
| 'ng-bind-route': '@routeName'
|
| - })
|
| + }
|
| +)
|
| class NgBindRouteDirective implements RouteProvider {
|
| Router _router;
|
| String routeName;
|
| @@ -40,9 +41,13 @@
|
| /// Returns the parent [RouteProvider].
|
| RouteProvider get _parent => _injector.parent.get(RouteProvider);
|
|
|
| - Route get route => routeName.startsWith('.') ?
|
| - _parent.route.getRoute(routeName.substring(1)) :
|
| - _router.root.getRoute(routeName);
|
| + Route get route {
|
| + if (routeName.startsWith('.')) {
|
| + return _parent.route.getRoute(routeName.substring(1));
|
| + } else {
|
| + return _router.root.getRoute(routeName);
|
| + }
|
| + }
|
|
|
| Map<String, String> get parameters {
|
| var res = <String, String>{};
|
|
|