refactor(router): misc minor updates
This commit is contained in:
parent
f634c62cb3
commit
a9d5de0e56
|
@ -110,7 +110,7 @@ export interface NavigationExtras {
|
||||||
* this.router.navigate(['/view'], { preserveQueryParams: true });
|
* this.router.navigate(['/view'], { preserveQueryParams: true });
|
||||||
* ```
|
* ```
|
||||||
*
|
*
|
||||||
* @deprecated
|
* @deprecated since v4
|
||||||
*/
|
*/
|
||||||
preserveQueryParams?: boolean;
|
preserveQueryParams?: boolean;
|
||||||
|
|
||||||
|
|
|
@ -21,13 +21,12 @@ import {ErrorHandler, Router} from './router';
|
||||||
import {ROUTES} from './router_config_loader';
|
import {ROUTES} from './router_config_loader';
|
||||||
import {RouterOutletMap} from './router_outlet_map';
|
import {RouterOutletMap} from './router_outlet_map';
|
||||||
import {NoPreloading, PreloadAllModules, PreloadingStrategy, RouterPreloader} from './router_preloader';
|
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 {UrlHandlingStrategy} from './url_handling_strategy';
|
||||||
import {DefaultUrlSerializer, UrlSerializer} from './url_tree';
|
import {DefaultUrlSerializer, UrlSerializer} from './url_tree';
|
||||||
import {flatten} from './utils/collection';
|
import {flatten} from './utils/collection';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @whatItDoes Contains a list of directives
|
* @whatItDoes Contains a list of directives
|
||||||
* @stable
|
* @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
|
* * 'legacy_disabled'- the initial navigation is not performed. The location listener is set up
|
||||||
* after @deprecated
|
* after @deprecated
|
||||||
* the root component gets created.
|
* the root component gets created.
|
||||||
* * `true` - same as 'legacy_enabled'. @deprecated
|
* * `true` - same as 'legacy_enabled'. @deprecated since v4
|
||||||
* * `false` - same as 'legacy_disabled'. @deprecated
|
* * `false` - same as 'legacy_disabled'. @deprecated since v4
|
||||||
*
|
*
|
||||||
* The 'enabled' option should be used for applications unless there is a reason to have
|
* 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
|
* more control over when the router starts its initial navigation due to some complex
|
||||||
|
|
Loading…
Reference in New Issue