Represents the context to be fed into a view rendered by an *onObserver
directive.
The context is immutable.
core/src/rxjs/on-observer/abstraction/types/on-observer-context.ts
Properties |
Methods |
|
constructor(selector: string, index: number, call: ObserverName, value?: TResolved, remaining?: DurationBreakdown, showingFor?: DurationBreakdown, elapsed?: DurationBreakdown)
|
||||||||||||||||||||||||
Creates an instance of OnObserverContext.
Parameters:
|
||||||||||||||||||||||||
Public Readonly Optional $implicit |
Type: TResolved
|
The resolved value as emitted by the original observable.
This allows assigning the emitted value to a variable using |
Public Readonly call |
Type: ObserverName
|
The name of the observer call which triggered this context creation. |
Public Readonly Optional elapsed |
Type: DurationBreakdown
|
(Optional) The time elapsed from the moment the view was rendered. Only used when |
Public Readonly index |
Type: number
|
The index of the view rendered by the directive. If the directive is in |
Public Readonly Optional remaining |
Type: DurationBreakdown
|
(Optional) The time left for the view to be rendered. Only used when |
Public Readonly Optional showingFor |
Type: DurationBreakdown
|
Static fromCommitment | |||||||||||||||
fromCommitment(onObserverSelector: string, index: number, undefined: ViewRenderCommitment<T>)
|
|||||||||||||||
Type parameters:
|
|||||||||||||||
Creates a context object for the specified view render commitment.
Parameters:
Returns:
OnObserverContext<T>
A context object for the specified view render commitment. |
|||||||||||||||
[key: string]:
|