73
73
* }
74
74
* }
75
75
*
76
- * [RouteProvider] and [ Route] can be used to control navigation, specifically,
76
+ * [RouteProvider] and ` Route` can be used to control navigation, specifically,
77
77
* leaving of the route. For example, let's consider "edit recipe" component:
78
78
*
79
79
* @Component(...)
96
96
* }
97
97
* }
98
98
*
99
- * [ Route .onPreLeave] event is triggered when the browser is routed from an
99
+ * ` Route .onPreLeave` event is triggered when the browser is routed from an
100
100
* active route to a different route. The active route can delay and
101
- * potentially veto the navigation by passing a [ Future <bool >] to
102
- * [ RoutePreLeaveEvent .allowLeave] .
101
+ * potentially veto the navigation by passing a ` Future <bool >` to
102
+ * ` RoutePreLeaveEvent .allowLeave` .
103
103
*
104
- * Notice that we create a [RouteHandle ] for our route. [ RouteHandle ] are
105
- * a convenient wrapper around [ Route ] that makes unsubscribing route events
104
+ * Notice that we create a [RouteHandle ] for our route. ` RouteHandle ` are
105
+ * a convenient wrapper around ` Route ` that makes unsubscribing route events
106
106
* easier. For example, notice that we didn't need to manually call
107
- * [ StreamSubscription.cancel] for subscription to [ Route.onPreLeave] . Calling
108
- * [ RouteHandle.discard] unsubscribes all listeners created for the handle.
107
+ * ` StreamSubscription.cancel` for subscription to ` Route.onPreLeave` . Calling
108
+ * ` RouteHandle.discard` unsubscribes all listeners created for the handle.
109
109
*
110
110
* ## Hierarchical Routes
111
111
*
@@ -142,6 +142,11 @@ part 'routing.dart';
142
142
part ' ng_view.dart';
143
143
part ' ng_bind_route.dart';
144
144
145
+ /**
146
+ * A module that defines all necessary bindings for Angular routing. This
147
+ * module is included in [AngularModule] and typically you don' t need to
148
+ * install it manually.
149
+ */
145
150
class RoutingModule extends Module {
146
151
RoutingModule ({bool usePushState: true }) {
147
152
bind (NgRoutingUsePushState );
@@ -162,10 +167,10 @@ class RoutingModule extends Module {
162
167
163
168
/**
164
169
* Allows configuration of [Router.useFragment] . By default [usePushState] is
165
- * true, so the router will listen to [ Window.onPopState] and route URLs like
170
+ * true, so the router will listen to ` Window.onPopState` and route URLs like
166
171
* "http://host:port/foo/bar?baz=qux". Both the path and query parts of the URL
167
172
* are used by the router. If [usePushState] is false, router will listen to
168
- * [ Window.onHashChange] and route URLs like
173
+ * ` Window.onHashChange` and route URLs like
169
174
* "http://host:port/path#/foo/bar?baz=qux". Everything after hash (#) is used
170
175
* by the router.
171
176
*/
0 commit comments