Using Config parameters


#1

Hi,
Is there any way to use config parameters, defined in app.ts file at @App annotation, in other pages (other ts files)? The idea is to add some generic parameters into config entry…


#2

Depending on what you need to do, you can always import the config and use set


#3

Thanks Mike,
Do you mean this :

import {Config} from 'ionic-angular' 
...

export class test {
Config.set(..);
//or 
Config.get(..);
}

We are creating an app that manages two kind of users (so 2 apps). So we decided to add some global parameters in config metadata, so that we can change the target once in all the project when we want to compile to a specific version…
Hope I was clear …