Centralize configuration for ionic 3 project

Hello,

I need to have a file that contains all links api to have one file with all configuration that i can use on the project…
Any idea how to proceed ?

I do like following:

1 Like

And the file Ressources is in which folder ?

I put it in src/providers/resources.ts (or in a subfolder)

Import for example in a page in src/pages:

import {Resources} from  '../providers/resources';
1 Like

My bad, sorry, it’s a json there was a typing mistake. I edited my solution.

Respectily modify like following:

 ....
   api_offres: 'http...',
1 Like

Perfecto :ok_hand:t2:
Thank you it’s working now

1 Like