IViewNavigator interface

Properties describing a ViewNavigator

Properties

currentId

Get the id of the currently rendered View from the top of the View stack

size

Current size of the View stack.

Methods

pop(skipUpdate)
push(id, skipUpdate)
register(id, initializer)
replace(id, skipUpdate)

Property Details

currentId

Get the id of the currently rendered View from the top of the View stack

currentId: string | undefined;

Property Value

string | undefined

Remarks

If the stack is empty, this will return undefined

size

Current size of the View stack.

size: number;

Property Value

number

Method Details

pop(skipUpdate)

pop(skipUpdate?: boolean): void;

Parameters

skipUpdate

boolean

Returns

void

push(id, skipUpdate)

push(id: string, skipUpdate?: boolean): void;

Parameters

id

string

skipUpdate

boolean

Returns

void

register(id, initializer)

register(id: string, initializer: () => TView | Promise<TView>): void;

Parameters

id

string

initializer

() => TView | Promise<TView>

Returns

void

replace(id, skipUpdate)

replace(id: string, skipUpdate?: boolean): void;

Parameters

id

string

skipUpdate

boolean

Returns

void