4.0.1 • Published 6 years ago
@mbamobi/configuration v4.0.1
ConfigurationModule
This allow define configuration in the app with object, file json (local or external) or custom strategy (ex: yaml)
Using in an Ionic 2 app
import { NgModule } from '@angular/core';
import { IonicApp, IonicModule } from 'ionic-angular';
import { MyApp } from './app.component';
// import ConfigurationModule
import { ConfigurationModule } from '@ramonornela/configuration';
export const APP_CONFIG = {
'my-config': 'My Config',
'my-config-env': {
'dev': 'Config Dev',
'prod': 'Config Dev'
}
};
@NgModule({
declarations: [
MyApp
],
imports: [
IonicModule.forRoot(MyApp),
ConfigurationModule.initialize(APP_CONFIG, 'dev')
],
bootstrap: [IonicApp],
entryComponents: [
MyApp
]
})
export class AppModule {}
Contributing
See CONTRIBUTING.md
4.0.1
6 years ago
4.0.0
6 years ago
3.0.0
7 years ago
2.0.0
7 years ago
2.0.0-nightly.20170404T183929Z.8f5189c
7 years ago
1.0.0
7 years ago
1.0.0-nightly.20170113T174518Z.72ac5be
7 years ago