qipp-config-environment
General
This module is used on our clients to extend the default flatapp.config configuration module, exposing the API host as a property of the config object (using the qipp API).
Install
npm i qipp-config-environment
Angular usage
In the config phase of your angular application:
angular.module('flatapp', [
'flatapp.config'
]).config([
'config',
function (
config
) {
// config.api.host is now accessible.
}
])
Tools
Linting with StandardJS
Please refer to the JavaScript Standard Style for general rules.
npm run lint
Unit testing with Karma
npm test
Requirements
Angular
- angular 1.4.3
Licence
Released under the MIT license by qipp.