Global variable set and read

#1

Please suggest me the best way to set and read global variable.
I want to set the variables once, and read from any page.
I need variables like, user language (grabbed from device) etc.
When

  • no database
  • no user registration
#2

If you want them to persist across app restarts, use Ionic Storage. If you want automatic updating for reads, expose them as Observables. Regardless, create a service provider and put them in there.

#3

Thanks you @rapropos