doc: standardize deprecation of preserveQueryParams
(4.0 only) (#14236)
PR closes #14236
This commit is contained in:

committed by
Miško Hevery

parent
a7479f657a
commit
69a4bb0bcd
@ -58,9 +58,8 @@ import {UrlTree} from '../url_tree';
|
||||
* ```
|
||||
* RouterLink will use these to generate this link: `/user/bob#education?debug=true`.
|
||||
*
|
||||
* You can also tell the directive to preserve the current query params and fragment:
|
||||
*
|
||||
* deprecated, use `queryParamsHandling` instead
|
||||
* (Deprecated in v4.0.0 use `queryParamsHandling` instead) You can also tell the
|
||||
* directive to preserve the current query params and fragment:
|
||||
*
|
||||
* ```
|
||||
* <a [routerLink]="['/user/bob']" preserveQueryParams preserveFragment>
|
||||
@ -121,6 +120,9 @@ export class RouterLink {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated 4.0.0 use `queryParamsHandling` instead.
|
||||
*/
|
||||
@Input()
|
||||
set preserveQueryParams(value: boolean) {
|
||||
if (isDevMode() && <any>console && <any>console.warn) {
|
||||
|
Reference in New Issue
Block a user