App

Improve this doc

App is a utility class used in Ionic to get information about various aspects of an app

Instance Members

getActiveNav()

Returns: NavController

Returns the active NavController. Using this method is preferred when we need access to the top-level navigation controller while on the outside views and handlers like registerBackButtonAction()

getRootNav()

Returns: NavController

Returns the root NavController

isScrolling()

Boolean if the app is actively scrolling or not.

Returns: boolean

returns true or false

setTitle(val)

Sets the document title.

Param Type Details
val string

Value to set the document title to.

viewDidEnter

Observable that emits after any view is entered in the app.

Returns: Observable

Returns an observable

viewDidLeave

Observable that emits after any view is exited in the app.

Returns: Observable

Returns an observable

viewDidLoad

Observable that emits whenever a view loads in the app.

Returns: Observable

Returns an observable

viewWillEnter

Observable that emits before any view is entered in the app.

Returns: Observable

Returns an observable

viewWillLeave

Observable that emits before any view is exited in the app.

Returns: Observable

Returns an observable

viewWillUnload

Observable that emits before any view unloads in the app.

Returns: Observable

Returns an observable

API

Native

General