How to change value of global variable on any files in Ionic?

Read about service providers.