1 | import { DynamicComponentLoader, OnDestroy, ViewContainerRef } from '@angular/core';
|
2 | import { EventEmitter } from '../facade/async';
|
3 | import { ComponentInstruction } from '../instruction';
|
4 | import * as routerMod from '../router';
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 | export declare class RouterOutlet implements OnDestroy {
|
15 | private _viewContainerRef;
|
16 | private _loader;
|
17 | private _parentRouter;
|
18 | name: string;
|
19 | private _componentRef;
|
20 | private _currentInstruction;
|
21 | activateEvents: EventEmitter<any>;
|
22 | constructor(_viewContainerRef: ViewContainerRef, _loader: DynamicComponentLoader, _parentRouter: routerMod.Router, nameAttr: string);
|
23 | /**
|
24 | * Called by the Router to instantiate a new component during the commit phase of a navigation.
|
25 | * This method in turn is responsible for calling the `routerOnActivate` hook of its child.
|
26 | */
|
27 | activate(nextInstruction: ComponentInstruction): Promise<any>;
|
28 | /**
|
29 | * Called by the {@link Router} during the commit phase of a navigation when an outlet
|
30 | * reuses a component between different routes.
|
31 | * This method in turn is responsible for calling the `routerOnReuse` hook of its child.
|
32 | */
|
33 | reuse(nextInstruction: ComponentInstruction): Promise<any>;
|
34 | |
35 |
|
36 |
|
37 |
|
38 | deactivate(nextInstruction: ComponentInstruction): Promise<any>;
|
39 | |
40 |
|
41 |
|
42 |
|
43 |
|
44 |
|
45 |
|
46 |
|
47 | routerCanDeactivate(nextInstruction: ComponentInstruction): Promise<boolean>;
|
48 | |
49 |
|
50 |
|
51 |
|
52 |
|
53 |
|
54 |
|
55 |
|
56 |
|
57 |
|
58 | routerCanReuse(nextInstruction: ComponentInstruction): Promise<boolean>;
|
59 | ngOnDestroy(): void;
|
60 | }
|