Caplin Trader 5.1.0

Interface: module:br-services/AppMetaService

module:br-services/AppMetaService

A service which provides access to meta data for a BRJS app.

Methods

getAppMetaData()

Returns map of all app meta data

Returns:

map of all app meta data

getLocaleCookieName()

Returns the name of the locale cookie set via app.conf

Returns:

The locales cookie

getLocales()

Returns the locales for the app

Returns:

The locales

getVersion()

Returns the app version

Returns:

The app version

getVersionedBundlePath(bundlePathopt)

Returns the path to content plugins/bundles.

Parameters:
Name Type Attributes Description
bundlePath String <optional>

The path to a bundle to be appended to the returned path

Returns:

The path to content plugins/bundles.

isDev()

Returns true if the app is running in 'dev' mode, false otherwise.

Returns:

true if the app is running in 'dev' mode, false otherwise.