Terry Gilliver
Posts: 0
Joined: Fri Apr 18, 2014 8:45 pm

Variable Scope

What is the scope of ionic variables? Are they available throughout the application or only on the page defined? Where are they stored? They don't appear to be in session or local storage. We don't seem to be able to define storage as in jqm.

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Variable Scope

Hello Terry,

Variables, which are defined on the index page are global, but variables, which are defined on other pages - available only on these pages.

Here is more information about scope variables: https://blog.appery.io/2015/11/unders...

Terry Gilliver
Posts: 0
Joined: Fri Apr 18, 2014 8:45 pm

Variable Scope

Thanks Serhii

Return to “Issues”