In my code, I have a boolean variable called isConnection
that is used to monitor network connection status. This variable is defined in a provider named 'network' and can be set to either true or false in different functions.
Now, I need to access the same variable in another provider called 'service'. I want to be able to check whether the value of isConnection
is true or false in the 'service' provider. To do this, I have already imported the 'network' provider into the 'service' provider.
Could someone please help me figure out how to properly check the value of the isConnection
variable in the 'service' provider?