App.request not being called in app.js inside data: function ()

is it possible to have app.request working in the app.js inside data: function () {
… ?

the purpose of these it is not having to call another page for loading some global data for the whole app…

in this case the facebook user login status and language geo location… both calls must be sent via Ajax to receive the data and want this data to have it available for the whole app as global data context…

is it possible? or I need to call another page to do this?
any ideas?

You can just call on global class as Framework7.request

1 Like

perfect thank you so much I will use it like that