Tree

Holds methods to traverse app child modules.

Usage#

getParent#

app.tree.getParent<T=IApp>():T#

get current parent app

app.tree.getParent() // IApp

parent#

app.tree.parent():IApp#

getter return current parent app

app.tree.parent // IApp

getRoot#

app.tree.getRoot<T=IApp>():T#

get current parent app

app.tree.getRoot() // IApp

parent#

app.tree.parent():IApp#

getter return current parent app

app.tree.root // IApp

children#

app.tree.children:IApp[]#

getter return current app children apps

app.tree.children // IApp[]

childAt#

app.tree.getChildAt(index: number): IApp#

return app child at index

app.tree.childAt(1) // IApp