fix(router): export navigation extras

This commit is contained in:
vsavkin 2016-07-18 16:42:33 -07:00
parent 921a17960c
commit 51e661eb74
4 changed files with 13 additions and 2 deletions

View File

@ -13,7 +13,7 @@ export {RouterLink, RouterLinkWithHref} from './src/directives/router_link';
export {RouterLinkActive} from './src/directives/router_link_active';
export {RouterOutlet} from './src/directives/router_outlet';
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 {RouterOutletMap} from './src/router_outlet_map';
export {provideRouter} from './src/router_providers';

View File

@ -6,13 +6,14 @@
* 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 {ActivatedRoute} from '../router_state';
import {PRIMARY_OUTLET} from '../shared';
/**
* A router outlet is a placeholder that Angular dynamically fills based on the application's route.
*

View File

@ -38,6 +38,9 @@ import {TreeNode} from './utils/tree';
declare var Zone: any;
/**
* @experimental
*/
export interface NavigationExtras {
relativeTo?: ActivatedRoute;
queryParams?: Params;

View File

@ -79,6 +79,13 @@ export declare class NavigationError {
toString(): string;
}
/** @experimental */
export interface NavigationExtras {
fragment?: string;
queryParams?: Params;
relativeTo?: ActivatedRoute;
}
/** @stable */
export declare class NavigationStart {
id: number;