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

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

Issue 256553002: Revert "Update all Angular libs (run update_all.sh)." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 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 98f936c1ca3204b10e5d5037cd034729aa7d4a54..7305401cf904865b964d6cd48f57dbb9cd9f96bc 100644
--- a/third_party/pkg/angular/lib/routing/ng_bind_route.dart
+++ b/third_party/pkg/angular/lib/routing/ng_bind_route.dart
@@ -22,23 +22,20 @@ part of angular.routing;
* ng-bind-route overrides [RouteProvider] instance published by ng-view,
* however it does not effect view resolution by nested ng-view(s).
*/
-@Decorator(
+@NgDirective(
+ visibility: NgDirective.CHILDREN_VISIBILITY,
+ publishTypes: const [RouteProvider],
selector: '[ng-bind-route]',
- module: NgBindRoute.module,
- map: const {'ng-bind-route': '@routeName'})
-class NgBindRoute implements RouteProvider {
+ map: const {
+ 'ng-bind-route': '@routeName'
+ })
+class NgBindRouteDirective implements RouteProvider {
Router _router;
String routeName;
Injector _injector;
- static final Module _module = new Module()
- ..factory(RouteProvider,
- (i) => i.get(NgBindRoute),
- visibility: Directive.CHILDREN_VISIBILITY);
- static module() => _module;
-
// We inject NgRoutingHelper to force initialization of routing.
- NgBindRoute(this._router, this._injector, NgRoutingHelper _);
+ NgBindRouteDirective(this._router, this._injector, NgRoutingHelper _);
/// Returns the parent [RouteProvider].
RouteProvider get _parent => _injector.parent.get(RouteProvider);
« 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