@@ -84,7 +84,7 @@ import {UrlTree} from '../url_tree';
84
84
* </a>
85
85
* ```
86
86
*
87
- * See {@link NavigationExtras .queryParamsHandling NavigationExtras #queryParamsHandling}.
87
+ * See {@link UrlCreationOptions .queryParamsHandling UrlCreationOptions #queryParamsHandling}.
88
88
*
89
89
* ### Preserving navigation history
90
90
*
@@ -117,51 +117,58 @@ import {UrlTree} from '../url_tree';
117
117
@Directive ( { selector : ':not(a):not(area)[routerLink]' } )
118
118
export class RouterLink implements OnChanges {
119
119
/**
120
- * Passed to {@link Router#createUrlTree Router#createUrlTree} as part of the `NavigationExtras`.
121
- * @see {@link NavigationExtras#queryParams NavigationExtras#queryParams }
120
+ * Passed to {@link Router#createUrlTree Router#createUrlTree} as part of the
121
+ * `UrlCreationOptions`.
122
+ * @see {@link UrlCreationOptions#queryParams UrlCreationOptions#queryParams }
122
123
* @see {@link Router#createUrlTree Router#createUrlTree }
123
124
*/
124
125
// TODO(issue/24571): remove '!'.
125
126
@Input ( ) queryParams ! : { [ k : string ] : any } ;
126
127
/**
127
- * Passed to {@link Router#createUrlTree Router#createUrlTree} as part of the `NavigationExtras`.
128
- * @see {@link NavigationExtras#fragment NavigationExtras#fragment }
128
+ * Passed to {@link Router#createUrlTree Router#createUrlTree} as part of the
129
+ * `UrlCreationOptions`.
130
+ * @see {@link UrlCreationOptions#fragment UrlCreationOptions#fragment }
129
131
* @see {@link Router#createUrlTree Router#createUrlTree }
130
132
*/
131
133
// TODO(issue/24571): remove '!'.
132
134
@Input ( ) fragment ! : string ;
133
135
/**
134
- * Passed to {@link Router#createUrlTree Router#createUrlTree} as part of the `NavigationExtras`.
135
- * @see {@link NavigationExtras#queryParamsHandling NavigationExtras#queryParamsHandling }
136
+ * Passed to {@link Router#createUrlTree Router#createUrlTree} as part of the
137
+ * `UrlCreationOptions`.
138
+ * @see {@link UrlCreationOptions#queryParamsHandling UrlCreationOptions#queryParamsHandling }
136
139
* @see {@link Router#createUrlTree Router#createUrlTree }
137
140
*/
138
141
// TODO(issue/24571): remove '!'.
139
142
@Input ( ) queryParamsHandling ! : QueryParamsHandling ;
140
143
/**
141
- * Passed to {@link Router#createUrlTree Router#createUrlTree} as part of the `NavigationExtras`.
142
- * @see {@link NavigationExtras#preserveFragment NavigationExtras#preserveFragment }
144
+ * Passed to {@link Router#createUrlTree Router#createUrlTree} as part of the
145
+ * `UrlCreationOptions`.
146
+ * @see {@link UrlCreationOptions#preserveFragment UrlCreationOptions#preserveFragment }
143
147
* @see {@link Router#createUrlTree Router#createUrlTree }
144
148
*/
145
149
// TODO(issue/24571): remove '!'.
146
150
@Input ( ) preserveFragment ! : boolean ;
147
151
/**
148
- * Passed to {@link Router#createUrlTree Router#createUrlTree} as part of the `NavigationExtras`.
149
- * @see {@link NavigationExtras#skipLocationChange NavigationExtras#skipLocationChange }
150
- * @see {@link Router#createUrlTree Router#createUrlTree }
152
+ * Passed to {@link Router#navigateByUrl Router#navigateByUrl} as part of the
153
+ * `NavigationBehaviorOptions`.
154
+ * @see {@link NavigationBehaviorOptions#skipLocationChange NavigationBehaviorOptions#skipLocationChange }
155
+ * @see {@link Router#navigateByUrl Router#navigateByUrl }
151
156
*/
152
157
// TODO(issue/24571): remove '!'.
153
158
@Input ( ) skipLocationChange ! : boolean ;
154
159
/**
155
- * Passed to {@link Router#createUrlTree Router#createUrlTree} as part of the `NavigationExtras`.
156
- * @see {@link NavigationExtras#replaceUrl NavigationExtras#replaceUrl }
157
- * @see {@link Router#createUrlTree Router#createUrlTree }
160
+ * Passed to {@link Router#navigateByUrl Router#navigateByUrl} as part of the
161
+ * `NavigationBehaviorOptions`.
162
+ * @see {@link NavigationBehaviorOptions#replaceUrl NavigationBehaviorOptions#replaceUrl }
163
+ * @see {@link Router#navigateByUrl Router#navigateByUrl }
158
164
*/
159
165
// TODO(issue/24571): remove '!'.
160
166
@Input ( ) replaceUrl ! : boolean ;
161
167
/**
162
- * Passed to {@link Router#createUrlTree Router#createUrlTree} as part of the `NavigationExtras`.
163
- * @see {@link NavigationExtras#state NavigationExtras#state }
164
- * @see {@link Router#createUrlTree Router#createUrlTree }
168
+ * Passed to {@link Router#navigateByUrl Router#navigateByUrl} as part of the
169
+ * `NavigationBehaviorOptions`.
170
+ * @see {@link NavigationBehaviorOptions#state NavigationBehaviorOptions#state }
171
+ * @see {@link Router#navigateByUrl Router#navigateByUrl }
165
172
*/
166
173
@Input ( ) state ?: { [ k : string ] : any } ;
167
174
private commands : any [ ] = [ ] ;
@@ -252,51 +259,58 @@ export class RouterLinkWithHref implements OnChanges, OnDestroy {
252
259
// TODO(issue/24571): remove '!'.
253
260
@HostBinding ( 'attr.target' ) @Input ( ) target ! : string ;
254
261
/**
255
- * Passed to {@link Router#createUrlTree Router#createUrlTree} as part of the `NavigationExtras`.
256
- * @see {@link NavigationExtras#queryParams NavigationExtras#queryParams }
262
+ * Passed to {@link Router#createUrlTree Router#createUrlTree} as part of the
263
+ * `UrlCreationOptions`.
264
+ * @see {@link UrlCreationOptions#queryParams UrlCreationOptions#queryParams }
257
265
* @see {@link Router#createUrlTree Router#createUrlTree }
258
266
*/
259
267
// TODO(issue/24571): remove '!'.
260
268
@Input ( ) queryParams ! : { [ k : string ] : any } ;
261
269
/**
262
- * Passed to {@link Router#createUrlTree Router#createUrlTree} as part of the `NavigationExtras`.
263
- * @see {@link NavigationExtras#fragment NavigationExtras#fragment }
270
+ * Passed to {@link Router#createUrlTree Router#createUrlTree} as part of the
271
+ * `UrlCreationOptions`.
272
+ * @see {@link UrlCreationOptions#fragment UrlCreationOptions#fragment }
264
273
* @see {@link Router#createUrlTree Router#createUrlTree }
265
274
*/
266
275
// TODO(issue/24571): remove '!'.
267
276
@Input ( ) fragment ! : string ;
268
277
/**
269
- * Passed to {@link Router#createUrlTree Router#createUrlTree} as part of the `NavigationExtras`.
270
- * @see {@link NavigationExtras#queryParamsHandling NavigationExtras#queryParamsHandling }
278
+ * Passed to {@link Router#createUrlTree Router#createUrlTree} as part of the
279
+ * `UrlCreationOptions`.
280
+ * @see {@link UrlCreationOptions#queryParamsHandling UrlCreationOptions#queryParamsHandling }
271
281
* @see {@link Router#createUrlTree Router#createUrlTree }
272
282
*/
273
283
// TODO(issue/24571): remove '!'.
274
284
@Input ( ) queryParamsHandling ! : QueryParamsHandling ;
275
285
/**
276
- * Passed to {@link Router#createUrlTree Router#createUrlTree} as part of the `NavigationExtras`.
277
- * @see {@link NavigationExtras#preserveFragment NavigationExtras#preserveFragment }
286
+ * Passed to {@link Router#createUrlTree Router#createUrlTree} as part of the
287
+ * `UrlCreationOptions`.
288
+ * @see {@link UrlCreationOptions#preserveFragment UrlCreationOptions#preserveFragment }
278
289
* @see {@link Router#createUrlTree Router#createUrlTree }
279
290
*/
280
291
// TODO(issue/24571): remove '!'.
281
292
@Input ( ) preserveFragment ! : boolean ;
282
293
/**
283
- * Passed to {@link Router#createUrlTree Router#createUrlTree} as part of the `NavigationExtras`.
284
- * @see {@link NavigationExtras#skipLocationChange NavigationExtras#skipLocationChange }
285
- * @see {@link Router#createUrlTree Router#createUrlTree }
294
+ * Passed to {@link Router#navigateByUrl Router#navigateByUrl} as part of the
295
+ * `NavigationBehaviorOptions`.
296
+ * @see {@link NavigationBehaviorOptions#skipLocationChange NavigationBehaviorOptions#skipLocationChange }
297
+ * @see {@link Router#navigateByUrl Router#navigateByUrl }
286
298
*/
287
299
// TODO(issue/24571): remove '!'.
288
300
@Input ( ) skipLocationChange ! : boolean ;
289
301
/**
290
- * Passed to {@link Router#createUrlTree Router#createUrlTree} as part of the `NavigationExtras`.
291
- * @see {@link NavigationExtras#replaceUrl NavigationExtras#replaceUrl }
292
- * @see {@link Router#createUrlTree Router#createUrlTree }
302
+ * Passed to {@link Router#navigateByUrl Router#navigateByUrl} as part of the
303
+ * `NavigationBehaviorOptions`.
304
+ * @see {@link NavigationBehaviorOptions#replaceUrl NavigationBehaviorOptions#replaceUrl }
305
+ * @see {@link Router#navigateByUrl Router#navigateByUrl }
293
306
*/
294
307
// TODO(issue/24571): remove '!'.
295
308
@Input ( ) replaceUrl ! : boolean ;
296
309
/**
297
- * Passed to {@link Router#createUrlTree Router#createUrlTree} as part of the `NavigationExtras`.
298
- * @see {@link NavigationExtras#state NavigationExtras#state }
299
- * @see {@link Router#createUrlTree Router#createUrlTree }
310
+ * Passed to {@link Router#navigateByUrl Router#navigateByUrl} as part of the
311
+ * `NavigationBehaviorOptions`.
312
+ * @see {@link NavigationBehaviorOptions#state NavigationBehaviorOptions#state }
313
+ * @see {@link Router#navigateByUrl Router#navigateByUrl }
300
314
*/
301
315
@Input ( ) state ?: { [ k : string ] : any } ;
302
316
private commands : any [ ] = [ ] ;
0 commit comments