diff --git a/modules/@angular/router/src/config.ts b/modules/@angular/router/src/config.ts index b21f94d8c9..d05bd14bf6 100644 --- a/modules/@angular/router/src/config.ts +++ b/modules/@angular/router/src/config.ts @@ -252,12 +252,12 @@ export type ResolveData = { }; /** - * @experimental + * @stable */ export type LoadChildrenCallback = () => Type| Promise>| Observable>; /** - * @experimental + * @stable */ export type LoadChildren = string | LoadChildrenCallback; diff --git a/modules/@angular/router/src/interfaces.ts b/modules/@angular/router/src/interfaces.ts index 5ef865cbc6..c4e6b9ae8b 100644 --- a/modules/@angular/router/src/interfaces.ts +++ b/modules/@angular/router/src/interfaces.ts @@ -197,7 +197,7 @@ export interface CanDeactivate { * * You can also provide a function with the same signature instead of the class. * - * @experimental + * @stable */ export interface Resolve { resolve(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): diff --git a/modules/@angular/router/src/router_module.ts b/modules/@angular/router/src/router_module.ts index db0093e47b..2b10e7847b 100644 --- a/modules/@angular/router/src/router_module.ts +++ b/modules/@angular/router/src/router_module.ts @@ -77,7 +77,7 @@ export const ROUTER_PROVIDERS: any[] = [ * class Lazy {} * ``` * - * @experimental + * @stable */ @NgModule({declarations: ROUTER_DIRECTIVES, exports: ROUTER_DIRECTIVES}) export class RouterModule { diff --git a/modules/@angular/router/src/shared.ts b/modules/@angular/router/src/shared.ts index 7dfe87cc2c..111e45c337 100644 --- a/modules/@angular/router/src/shared.ts +++ b/modules/@angular/router/src/shared.ts @@ -10,14 +10,14 @@ * Name of the primary outlet. * @type {string} * - * @experimental + * @stable */ export const PRIMARY_OUTLET = 'primary'; /** * A collection of parameters. * - * @experimental + * @stable */ export type Params = { [key: string]: any diff --git a/modules/@angular/router/src/url_tree.ts b/modules/@angular/router/src/url_tree.ts index a9ce7d1d4d..f6e44a301a 100644 --- a/modules/@angular/router/src/url_tree.ts +++ b/modules/@angular/router/src/url_tree.ts @@ -154,7 +154,7 @@ export function mapChildrenIntoArray( /** * Defines a way to serialize/deserialize a url tree. * - * @experimental + * @stable */ export abstract class UrlSerializer { /** @@ -171,7 +171,7 @@ export abstract class UrlSerializer { /** * A default implementation of the serialization. * - * @experimental + * @stable */ export class DefaultUrlSerializer implements UrlSerializer { parse(url: string): UrlTree { diff --git a/modules/@angular/router/testing/router_testing_module.ts b/modules/@angular/router/testing/router_testing_module.ts index 99ad29817b..5dd00b6128 100644 --- a/modules/@angular/router/testing/router_testing_module.ts +++ b/modules/@angular/router/testing/router_testing_module.ts @@ -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 * factories. * - * @experimental + * @stable */ @Injectable() export class SpyNgModuleFactoryLoader implements NgModuleFactoryLoader { @@ -61,7 +61,7 @@ function setupTestingRouter( * }); * ``` * - * @experimental + * @stable */ @NgModule({ exports: [RouterModule], diff --git a/tools/public_api_guard/router/index.d.ts b/tools/public_api_guard/router/index.d.ts index 64b6a7894a..d86136619e 100644 --- a/tools/public_api_guard/router/index.d.ts +++ b/tools/public_api_guard/router/index.d.ts @@ -60,7 +60,7 @@ export declare type Data = { [name: string]: any; }; -/** @experimental */ +/** @stable */ export declare class DefaultUrlSerializer implements UrlSerializer { parse(url: string): UrlTree; serialize(tree: UrlTree): string; @@ -75,10 +75,10 @@ export interface ExtraOptions { useHash?: boolean; } -/** @experimental */ +/** @stable */ export declare type LoadChildren = string | LoadChildrenCallback; -/** @experimental */ +/** @stable */ export declare type LoadChildrenCallback = () => Type | Promise> | Observable>; /** @stable */ @@ -126,18 +126,18 @@ export declare class NavigationStart { toString(): string; } -/** @experimental */ +/** @stable */ export declare type Params = { [key: string]: any; }; -/** @experimental */ +/** @stable */ export declare const PRIMARY_OUTLET: string; /** @stable */ export declare function provideRoutes(routes: Routes): any; -/** @experimental */ +/** @stable */ export interface Resolve { resolve(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable | Promise | any; } @@ -237,7 +237,7 @@ export declare class RouterLinkWithHref implements OnChanges, OnDestroy { onClick(button: number, ctrlKey: boolean, metaKey: boolean): boolean; } -/** @experimental */ +/** @stable */ export declare class RouterModule { static forChild(routes: Routes): ModuleWithProviders; static forRoot(routes: Routes, config?: ExtraOptions): ModuleWithProviders; @@ -300,7 +300,7 @@ export declare class UrlSegment { toString(): string; } -/** @experimental */ +/** @stable */ export declare abstract class UrlSerializer { abstract parse(url: string): UrlTree; abstract serialize(tree: UrlTree): string;