refactor(router): remove deprecated apis (#10658)
This commit is contained in:
@ -43,16 +43,6 @@ export class RouterState extends Tree<ActivatedRoute> {
|
||||
setRouterStateSnapshot<RouterState, ActivatedRoute>(this, root);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated (Use root.queryParams)
|
||||
*/
|
||||
get queryParams(): Observable<Params> { return this.root.queryParams; }
|
||||
|
||||
/**
|
||||
* @deprecated (Use root.fragment)
|
||||
*/
|
||||
get fragment(): Observable<string> { return this.root.fragment; }
|
||||
|
||||
toString(): string { return this.snapshot.toString(); }
|
||||
}
|
||||
|
||||
@ -174,11 +164,6 @@ export class InheritedResolve {
|
||||
* @stable
|
||||
*/
|
||||
export class ActivatedRouteSnapshot {
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
_resolvedComponentFactory: ComponentFactory<any>;
|
||||
|
||||
/** @internal **/
|
||||
_routeConfig: Route;
|
||||
|
||||
@ -251,16 +236,6 @@ export class RouterStateSnapshot extends Tree<ActivatedRouteSnapshot> {
|
||||
setRouterStateSnapshot<RouterStateSnapshot, ActivatedRouteSnapshot>(this, root);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated (Use root.queryParams)
|
||||
*/
|
||||
get queryParams(): Params { return this.root.queryParams; }
|
||||
|
||||
/**
|
||||
* @deprecated (Use root.fragment)
|
||||
*/
|
||||
get fragment(): string { return this.root.fragment; }
|
||||
|
||||
toString(): string { return serializeNode(this._root); }
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user