fix(router): export navigation extras
This commit is contained in:
parent
921a17960c
commit
51e661eb74
@ -13,7 +13,7 @@ export {RouterLink, RouterLinkWithHref} from './src/directives/router_link';
|
|||||||
export {RouterLinkActive} from './src/directives/router_link_active';
|
export {RouterLinkActive} from './src/directives/router_link_active';
|
||||||
export {RouterOutlet} from './src/directives/router_outlet';
|
export {RouterOutlet} from './src/directives/router_outlet';
|
||||||
export {CanActivate, CanActivateChild, CanDeactivate, Resolve} from './src/interfaces';
|
export {CanActivate, CanActivateChild, CanDeactivate, Resolve} from './src/interfaces';
|
||||||
export {Event, NavigationCancel, NavigationEnd, NavigationError, NavigationStart, Router, RoutesRecognized} from './src/router';
|
export {Event, NavigationCancel, NavigationEnd, NavigationError, NavigationExtras, NavigationStart, Router, RoutesRecognized} from './src/router';
|
||||||
export {ROUTER_DIRECTIVES, RouterModule} from './src/router_module';
|
export {ROUTER_DIRECTIVES, RouterModule} from './src/router_module';
|
||||||
export {RouterOutletMap} from './src/router_outlet_map';
|
export {RouterOutletMap} from './src/router_outlet_map';
|
||||||
export {provideRouter} from './src/router_providers';
|
export {provideRouter} from './src/router_providers';
|
||||||
|
@ -6,13 +6,14 @@
|
|||||||
* found in the LICENSE file at https://angular.io/license
|
* found in the LICENSE file at https://angular.io/license
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {Attribute, ComponentFactory, ComponentFactoryResolver, ComponentRef, Directive, EventEmitter, NoComponentFactoryError, Output, ReflectiveInjector, ResolvedReflectiveProvider, ViewContainerRef, Injector} from '@angular/core';
|
import {Attribute, ComponentFactory, ComponentFactoryResolver, ComponentRef, Directive, EventEmitter, Injector, NoComponentFactoryError, Output, ReflectiveInjector, ResolvedReflectiveProvider, ViewContainerRef} from '@angular/core';
|
||||||
|
|
||||||
import {RouterOutletMap} from '../router_outlet_map';
|
import {RouterOutletMap} from '../router_outlet_map';
|
||||||
import {ActivatedRoute} from '../router_state';
|
import {ActivatedRoute} from '../router_state';
|
||||||
import {PRIMARY_OUTLET} from '../shared';
|
import {PRIMARY_OUTLET} from '../shared';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A router outlet is a placeholder that Angular dynamically fills based on the application's route.
|
* A router outlet is a placeholder that Angular dynamically fills based on the application's route.
|
||||||
*
|
*
|
||||||
|
@ -38,6 +38,9 @@ import {TreeNode} from './utils/tree';
|
|||||||
|
|
||||||
declare var Zone: any;
|
declare var Zone: any;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @experimental
|
||||||
|
*/
|
||||||
export interface NavigationExtras {
|
export interface NavigationExtras {
|
||||||
relativeTo?: ActivatedRoute;
|
relativeTo?: ActivatedRoute;
|
||||||
queryParams?: Params;
|
queryParams?: Params;
|
||||||
|
7
tools/public_api_guard/router/index.d.ts
vendored
7
tools/public_api_guard/router/index.d.ts
vendored
@ -79,6 +79,13 @@ export declare class NavigationError {
|
|||||||
toString(): string;
|
toString(): string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @experimental */
|
||||||
|
export interface NavigationExtras {
|
||||||
|
fragment?: string;
|
||||||
|
queryParams?: Params;
|
||||||
|
relativeTo?: ActivatedRoute;
|
||||||
|
}
|
||||||
|
|
||||||
/** @stable */
|
/** @stable */
|
||||||
export declare class NavigationStart {
|
export declare class NavigationStart {
|
||||||
id: number;
|
id: number;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user