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
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
If you want them to persist across app restarts, use Ionic Storage. If you want automatic updating for reads, expose them as Observable
s. Regardless, create a service provider and put them in there.
Thanks you @rapropos