Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Application

The Application class is the main class initialising and booting all other components, plugins, etc

var app:packadic.Application = packadic.Application.instance
app.DEBUG = true;
app.init({
     customConfigVariable: 'asdf'
});
app.boot().then(function(app:packadic.Application){
    // Application booted
    $('someElement').superDuperPlugin({

    });
});

Hierarchy

  • Application

Implements

Index

Constructors

constructor

Properties

DEBUG

DEBUG: boolean

If true, the debug log will be enabled, with some other additions as well

Private _config

_config: IConfig

Private _events

_events: EventEmitter2

config

The configuration repository

isBooted

isBooted: boolean

isInitialised

isInitialised: boolean

Static Protected _instance

_instance: Application

Static defaults

defaults: any

Default configuration values, these will be set after initial construction using getConfigDefaults()

Accessors

components

debug

Static instance

Methods

boot

booted

  • booted(fn: Function): void

emit

init

off

on

once

Object literals

timers

timers: object

boot

boot: null

construct

construct: null

init

init: null