refactor(router): update stability labels (#10902)
This commit is contained in:
parent
4be863c223
commit
00e157dc3b
|
@ -252,12 +252,12 @@ export type ResolveData = {
|
|||
};
|
||||
|
||||
/**
|
||||
* @experimental
|
||||
* @stable
|
||||
*/
|
||||
export type LoadChildrenCallback = () => Type<any>| Promise<Type<any>>| Observable<Type<any>>;
|
||||
|
||||
/**
|
||||
* @experimental
|
||||
* @stable
|
||||
*/
|
||||
export type LoadChildren = string | LoadChildrenCallback;
|
||||
|
||||
|
|
|
@ -197,7 +197,7 @@ export interface CanDeactivate<T> {
|
|||
*
|
||||
* You can also provide a function with the same signature instead of the class.
|
||||
*
|
||||
* @experimental
|
||||
* @stable
|
||||
*/
|
||||
export interface Resolve<T> {
|
||||
resolve(route: ActivatedRouteSnapshot, state: RouterStateSnapshot):
|
||||
|
|
|
@ -77,7 +77,7 @@ export const ROUTER_PROVIDERS: any[] = [
|
|||
* class Lazy {}
|
||||
* ```
|
||||
*
|
||||
* @experimental
|
||||
* @stable
|
||||
*/
|
||||
@NgModule({declarations: ROUTER_DIRECTIVES, exports: ROUTER_DIRECTIVES})
|
||||
export class RouterModule {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -154,7 +154,7 @@ export function mapChildrenIntoArray<T>(
|
|||
/**
|
||||
* 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 {
|
||||
|
|
|
@ -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],
|
||||
|
|
|
@ -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<any> | Promise<Type<any>> | Observable<Type<any>>;
|
||||
|
||||
/** @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<T> {
|
||||
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;
|
||||
}
|
||||
|
||||
/** @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;
|
||||
|
|
Loading…
Reference in New Issue