ViewHookExecutor
Executes view hooks on a component instance.
Constructor Summary
Public Constructor | ||
public |
|
Method Summary
Public Methods | ||
public |
Invokes the view hook on the instance with the given argument. |
|
public |
linkObservers(viewContainer: ViewContainer<T>, target: Object) Links a resolved view container to any hook observables. |
|
public |
registerInterceptor(instance: *, hook: string, fn: Function) Registers an interceptor for a hook on a given instance. |
Public Constructors
public constructor() source
Public Methods
public execute(instance: T, method: string, arg: *): * source
Invokes the view hook on the instance with the given argument. This will also invoke any interceptors for the hook as well after the hook on the component has been invoked.
Params:
Name | Type | Attribute | Description |
instance | T | ||
method | string | ||
arg | * |
|
Return:
* |
public linkObservers(viewContainer: ViewContainer<T>, target: Object) source
Links a resolved view container to any hook observables. Metadata is read from the given target.
Params:
Name | Type | Attribute | Description |
viewContainer | ViewContainer<T> | ||
target | Object |