Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

Commit 6ffb16d

Browse files
committed
#126 Fix Chapter 06 routing binding and ignore printInjectionWarnings.
1 parent d4cf496 commit 6ffb16d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Chapter_06/web/main.dart

+3-2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ import 'package:angular_dart_demo/component/search_recipe_component.dart';
1515

1616
class MyAppModule extends Module {
1717
MyAppModule() {
18+
Binding.printInjectWarning = false; // needed for https://github.com/angular/angular.dart/issues/1272
19+
1820
bind(RecipeBookController);
1921
bind(RatingComponent);
2022
bind(Tooltip);
@@ -23,8 +25,7 @@ class MyAppModule extends Module {
2325
bind(ViewRecipeComponent);
2426
bind(QueryService);
2527
bind(RouteInitializerFn, toValue: recipeBookRouteInitializer);
26-
bind(NgRoutingUsePushState, toFactory:
27-
(_) => new NgRoutingUsePushState.value(false));
28+
bind(NgRoutingUsePushState, toValue: new NgRoutingUsePushState.value(false));
2829
}
2930
}
3031

0 commit comments

Comments
 (0)