angular.dart.tutorial icon indicating copy to clipboard operation
angular.dart.tutorial copied to clipboard

Mention NgRoutingUsePushState in routing/view tutorial

Open sethladd opened this issue 12 years ago • 1 comments

This seems to be the magic line to get it working:

factory(NgRoutingUsePushState, (_) => new NgRoutingUsePushState.value(false));

but the tutorial doesn't mention it, or I missed it.

sethladd avatar Jan 10 '14 23:01 sethladd

Since 0.13.0 factory is removed, bind should be used instead :

bind(NgRoutingUsePushState,  toValue: new NgRoutingUsePushState.value(false));

And this is a PR to 0.13.0 tutorial upgrade : https://github.com/angular/angular.dart.tutorial/pull/127

youssefgh avatar Aug 05 '14 18:08 youssefgh