2.5.5 • Published 3 years ago

next-core-application v2.5.5

Weekly downloads
5
License
Apache-2.0
Repository
github
Last release
3 years ago

next-core-application

Augmented.js Next Core - Application

API

Table of Contents

Application

Parameters

  • options object options to init the application

Examples

const app = new Application({ "name": "Awesome" });
app.start();
const app = new Application();
app.name = "My Super Application!";
app.setMetadataItem("description", "something very awesome");
app.initialize = () => { do some stuff... };
app.start();

router

The router property of the application

started

The started property of the application

Returns boolean Returns the property of the started Event

initialize

Event for after during startup of the application

beforeInitialize

Event for before the startup of the application

afterInitialize

Event for after the startup of the application

name

The application name

metadata

The metadata map

Returns any Map of metadata in an Augmented.Utility.Map

setMetadataItem

Set a specific item in metadata

Parameters

getMetadataItem

Get a specific item in metadata

Parameters

Returns object value of the key

registerRouter

Register a Router - adds routes to the application

Parameters

  • router Router Router to register

start

Event to start the application and history

Returns Promise Promise.Resolve or Promise.Reject based on success

stop

Event to stop the application and history

datastore

Gets the datastore for the application

Properties

  • datastore (Augmented.Model | object)