Caplin Trader 4.8.0

Interface: module:br/services/AppMetaService

module:br/services/AppMetaService

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

Methods

getLocaleCookieName()

Returns the name of the locale cookie set via app.conf
Implementations:
  • module:br/services/bundlepath/BRAppMetaService#getLocaleCookieName
Returns:
The locales cookie

getLocales()

Returns the locales for the app
Implementations:
  • module:br/services/bundlepath/BRAppMetaService#getLocales
Returns:
The locales

getVersion()

Returns the app version
Implementations:
  • module:br/services/bundlepath/BRAppMetaService#getVersion
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
Implementations:
  • module:br/services/bundlepath/BRAppMetaService#getVersionedBundlePath
Returns:
The path to content plugins/bundles.

isDev()

Returns true if the app is running in 'dev' mode, false otherwise.
Implementations:
  • module:br/services/bundlepath/BRAppMetaService#isDev
Returns:
true if the app is running in 'dev' mode, false otherwise.