Ionic Framework 4 is almost here. Preview the beta docs and try it out now! Try Ionic 4 Beta

App

Improve this doc

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

Instance Members

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

viewDidEnter

Observable that emits after 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

viewDidLeave

Observable that emits after 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

setTitle(val)

Sets the document title.

Param Type Details
val string

Value to set the document title to.

isScrolling()

Boolean if the app is actively scrolling or not.

Returns: boolean

returns true or false

getRootNav()

Returns: NavController

Returns the root NavController

API

Native

General