Ionic 2 Use Global Variables


#1

How to use global variables in Ionic 2.

For example Ionic 1 using $rootScope.variable_name use have use anywhere with in the app. In the same way i want to know the way.


#2

In ionic2, it’s recommended to use global providers and put variables in it.