- Source:
The app.core
module pull in all the commonly used dependencies.
Members
(static, constant) configDefaults
- Source:
The configDefaults
constant service provides default configuration values.
(private, static, constant) DEFAULT_LANGS
- Source:
The runBlock
triggers schema and locale file loading, sets language of the app.
(static) globalRegistry
- Source:
The globalRegistry
constant wraps around AV global registry for a single point of reference. Use this to access AV
global.
It's useful if we need to change the name of the global registry.
(static) translationService
- Source:
The 'translationService' service is provided to $translateProvider as a custom language loader. It allows translations to be added by plugins at any point in the application life cycle.
(static, constant) version
- Source:
The 'version' constant service provides current version numbers and the timestap.
Methods
(private, static) configBlock($translateProvider, $mdThemingProvider, $mdIconProvider, $parseProvider)
- Source:
The configBlock
does three things right now:
- configure translation provider by prepping static loader (and optionally setting preferred language if we know what it is),
- configure theme colours for angular material
Parameters:
Name | Type | Description |
---|---|---|
$translateProvider |
Object | Angular object |
$mdThemingProvider |
Object | Angular objec |
$mdIconProvider |
Object | Angular object |
$parseProvider |
Object | Angular object |
(static) seed()
- Source:
seed
is an implicit function which runs on application startup to
initialize all marked DOM nodes to map instances
(inner) configureIconsets()
- Source:
Adds svg iconsets to the md icon provider.
(inner) configureTheme()
- Source:
Set theme colours from material desing colour palette.
(inner) configureTranslations()
- Source:
Configure angular translation provider. Set locale files location and file name pattern.