refactor(router): update stability labels (#10902)

This commit is contained in:
Victor Savkin 2016-08-17 15:35:30 -07:00 committed by Kara
parent 4be863c223
commit 00e157dc3b
7 changed files with 18 additions and 18 deletions

View File

@ -252,12 +252,12 @@ export type ResolveData = {
}; };
/** /**
* @experimental * @stable
*/ */
export type LoadChildrenCallback = () => Type<any>| Promise<Type<any>>| Observable<Type<any>>; export type LoadChildrenCallback = () => Type<any>| Promise<Type<any>>| Observable<Type<any>>;
/** /**
* @experimental * @stable
*/ */
export type LoadChildren = string | LoadChildrenCallback; export type LoadChildren = string | LoadChildrenCallback;

View File

@ -197,7 +197,7 @@ export interface CanDeactivate<T> {
* *
* You can also provide a function with the same signature instead of the class. * You can also provide a function with the same signature instead of the class.
* *
* @experimental * @stable
*/ */
export interface Resolve<T> { export interface Resolve<T> {
resolve(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): resolve(route: ActivatedRouteSnapshot, state: RouterStateSnapshot):

View File

@ -77,7 +77,7 @@ export const ROUTER_PROVIDERS: any[] = [
* class Lazy {} * class Lazy {}
* ``` * ```
* *
* @experimental * @stable
*/ */
@NgModule({declarations: ROUTER_DIRECTIVES, exports: ROUTER_DIRECTIVES}) @NgModule({declarations: ROUTER_DIRECTIVES, exports: ROUTER_DIRECTIVES})
export class RouterModule { export class RouterModule {

View File

@ -10,14 +10,14 @@
* Name of the primary outlet. * Name of the primary outlet.
* @type {string} * @type {string}
* *
* @experimental * @stable
*/ */
export const PRIMARY_OUTLET = 'primary'; export const PRIMARY_OUTLET = 'primary';
/** /**
* A collection of parameters. * A collection of parameters.
* *
* @experimental * @stable
*/ */
export type Params = { export type Params = {
[key: string]: any [key: string]: any

View File

@ -154,7 +154,7 @@ export function mapChildrenIntoArray<T>(
/** /**
* Defines a way to serialize/deserialize a url tree. * Defines a way to serialize/deserialize a url tree.
* *
* @experimental * @stable
*/ */
export abstract class UrlSerializer { export abstract class UrlSerializer {
/** /**
@ -171,7 +171,7 @@ export abstract class UrlSerializer {
/** /**
* A default implementation of the serialization. * A default implementation of the serialization.
* *
* @experimental * @stable
*/ */
export class DefaultUrlSerializer implements UrlSerializer { export class DefaultUrlSerializer implements UrlSerializer {
parse(url: string): UrlTree { parse(url: string): UrlTree {

View File

@ -21,7 +21,7 @@ import {flatten} from '../src/utils/collection';
* A spy for {@link NgModuleFactoryLoader} that allows tests to simulate the loading of ng module * A spy for {@link NgModuleFactoryLoader} that allows tests to simulate the loading of ng module
* factories. * factories.
* *
* @experimental * @stable
*/ */
@Injectable() @Injectable()
export class SpyNgModuleFactoryLoader implements NgModuleFactoryLoader { export class SpyNgModuleFactoryLoader implements NgModuleFactoryLoader {
@ -61,7 +61,7 @@ function setupTestingRouter(
* }); * });
* ``` * ```
* *
* @experimental * @stable
*/ */
@NgModule({ @NgModule({
exports: [RouterModule], exports: [RouterModule],

View File

@ -60,7 +60,7 @@ export declare type Data = {
[name: string]: any; [name: string]: any;
}; };
/** @experimental */ /** @stable */
export declare class DefaultUrlSerializer implements UrlSerializer { export declare class DefaultUrlSerializer implements UrlSerializer {
parse(url: string): UrlTree; parse(url: string): UrlTree;
serialize(tree: UrlTree): string; serialize(tree: UrlTree): string;
@ -75,10 +75,10 @@ export interface ExtraOptions {
useHash?: boolean; useHash?: boolean;
} }
/** @experimental */ /** @stable */
export declare type LoadChildren = string | LoadChildrenCallback; export declare type LoadChildren = string | LoadChildrenCallback;
/** @experimental */ /** @stable */
export declare type LoadChildrenCallback = () => Type<any> | Promise<Type<any>> | Observable<Type<any>>; export declare type LoadChildrenCallback = () => Type<any> | Promise<Type<any>> | Observable<Type<any>>;
/** @stable */ /** @stable */
@ -126,18 +126,18 @@ export declare class NavigationStart {
toString(): string; toString(): string;
} }
/** @experimental */ /** @stable */
export declare type Params = { export declare type Params = {
[key: string]: any; [key: string]: any;
}; };
/** @experimental */ /** @stable */
export declare const PRIMARY_OUTLET: string; export declare const PRIMARY_OUTLET: string;
/** @stable */ /** @stable */
export declare function provideRoutes(routes: Routes): any; export declare function provideRoutes(routes: Routes): any;
/** @experimental */ /** @stable */
export interface Resolve<T> { export interface Resolve<T> {
resolve(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<any> | Promise<any> | any; resolve(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<any> | Promise<any> | any;
} }
@ -237,7 +237,7 @@ export declare class RouterLinkWithHref implements OnChanges, OnDestroy {
onClick(button: number, ctrlKey: boolean, metaKey: boolean): boolean; onClick(button: number, ctrlKey: boolean, metaKey: boolean): boolean;
} }
/** @experimental */ /** @stable */
export declare class RouterModule { export declare class RouterModule {
static forChild(routes: Routes): ModuleWithProviders; static forChild(routes: Routes): ModuleWithProviders;
static forRoot(routes: Routes, config?: ExtraOptions): ModuleWithProviders; static forRoot(routes: Routes, config?: ExtraOptions): ModuleWithProviders;
@ -300,7 +300,7 @@ export declare class UrlSegment {
toString(): string; toString(): string;
} }
/** @experimental */ /** @stable */
export declare abstract class UrlSerializer { export declare abstract class UrlSerializer {
abstract parse(url: string): UrlTree; abstract parse(url: string): UrlTree;
abstract serialize(tree: UrlTree): string; abstract serialize(tree: UrlTree): string;