UNPKG

1.29 kBTypeScriptView Raw
1import { ActivatedRouteSnapshot } from '@angular/router';
2import { Observable, ReplaySubject, Subject } from 'rxjs';
3export declare class Frame {
4 /**
5 * The route url of the route that this controller is attached to, if any.
6 * This value MAY change if the route url changes of the controllerrs route.
7 */
8 routeUrl: string;
9 /**
10 * The current activated route snapshot for this frame.
11 */
12 routeSnapshot: ActivatedRouteSnapshot;
13 /**
14 * An observable of the route url of the route that this controllerr is attached to, if any.
15 */
16 readonly routeUrl$: Observable<string>;
17 /**
18 * Emitted when the frame resolve method starts if this controller is attached to a route.
19 */
20 readonly resolveStart$: Observable<void>;
21 /**
22 * Emitted when the frame resolve method ends if this controller is attached to a route.
23 */
24 readonly resolveEnd$: Observable<void>;
25 /**
26 * Emitted when the frame resolve method is cancelled if this controller is attached to a route.
27 */
28 readonly resolveCancel$: Observable<void>;
29 /**
30 * Subjects
31 */
32 routeUrlSubject: ReplaySubject<string>;
33 resolveStartSubject: Subject<void>;
34 resolveEndSubject: Subject<void>;
35 resolveCancelSubject: Subject<void>;
36}