diff --git a/packages/router/src/router.ts b/packages/router/src/router.ts index 8fbd39045b..ef4abe1bf8 100644 --- a/packages/router/src/router.ts +++ b/packages/router/src/router.ts @@ -110,7 +110,7 @@ export interface NavigationExtras { * this.router.navigate(['/view'], { preserveQueryParams: true }); * ``` * - * @deprecated + * @deprecated since v4 */ preserveQueryParams?: boolean; diff --git a/packages/router/src/router_module.ts b/packages/router/src/router_module.ts index 049673e430..4451ac013f 100644 --- a/packages/router/src/router_module.ts +++ b/packages/router/src/router_module.ts @@ -21,13 +21,12 @@ import {ErrorHandler, Router} from './router'; import {ROUTES} from './router_config_loader'; import {RouterOutletMap} from './router_outlet_map'; import {NoPreloading, PreloadAllModules, PreloadingStrategy, RouterPreloader} from './router_preloader'; -import {ActivatedRoute, RouterStateSnapshot} from './router_state'; +import {ActivatedRoute} from './router_state'; import {UrlHandlingStrategy} from './url_handling_strategy'; import {DefaultUrlSerializer, UrlSerializer} from './url_tree'; import {flatten} from './utils/collection'; - /** * @whatItDoes Contains a list of directives * @stable @@ -224,8 +223,8 @@ export function provideRoutes(routes: Routes): any { * * 'legacy_disabled'- the initial navigation is not performed. The location listener is set up * after @deprecated * the root component gets created. - * * `true` - same as 'legacy_enabled'. @deprecated - * * `false` - same as 'legacy_disabled'. @deprecated + * * `true` - same as 'legacy_enabled'. @deprecated since v4 + * * `false` - same as 'legacy_disabled'. @deprecated since v4 * * The 'enabled' option should be used for applications unless there is a reason to have * more control over when the router starts its initial navigation due to some complex