Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70435

Ionic 2 Config api

$
0
0

@nomana123 wrote:

I do not understand how to use the config api that is listed here:

Particularly this example below:
config.set(‘ios’, ‘favoriteColor’, ‘green’);
// from any page in your app:
config.get(‘favoriteColor’); // ‘green’ when iOS

What are my imports? Can I do this in the app.module.ts? Also, the documents read that if I don’t say the platform then the variable is available on all platforms, what would the syntax look like then?
config.set(null, ‘appName’, ‘App’)? config.set(‘appName’, ‘App’)?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70435

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>