Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49076

How cordova plugin creates global variable?

$
0
0

@franky wrote:

I am using cordova-plugin-device, which creates a global variable called device after device is ready. It works fine. But I am wondering how the plugin creates the global variable. I tried to bind $rootScope.device to UI and it shows me nothing, I know another way to create a global variable is use angular value recipe. But all explanations I found all creating global variable at the initial stage, by explicitly state a new variable in the module definition file. I checked cordova plugin source code, but didn't see any kind of statement like this. Actually my problem is nothing to do with the plugin, just curious about how plugin creates global variable.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49076

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>