refactor(router): update stability labels (#10902)
This commit is contained in:
@ -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],
|
||||
|
Reference in New Issue
Block a user