Home Reference Source
import {App} from 'arva-js/core/App.js'
public class | source

App

The App class exposes the Router which can be used to configure the Application's routing settings. You can specify which Route should be default by calling router.setDefault(controller, method);

Static Method Summary

Static Public Methods
public static

start()

Triggers a creation of the app, by using an Injection.get

Constructor Summary

Public Constructor
public

constructor(router: Router, context: Context): App

Have the router check check which route is active and fire the Controller

Member Summary

Public Members
public

context: *

The animationController that controls the animations between screens

public
public

router: *

The router of the application

Static Public Methods

public static start() source

Triggers a creation of the app, by using an Injection.get

Public Constructors

public constructor(router: Router, context: Context): App source

Have the router check check which route is active and fire the Controller

Params:

NameTypeAttributeDescription
router Router

The router instance to use in the app.

context Context

The data context instance to use in the app.

Return:

App

App instance

Public Members

public context: * source

The animationController that controls the animations between screens

public controllers: * source

public router: * source

The router of the application