Reputation: 954
I am developping an application with backbone
Is it possible to create an object global :
data
in my Object global?thank you for your helps
Upvotes: 0
Views: 104
Reputation: 1097
You can always use window.yourObject
- window is globally accessible if you are not changing/refreshing the page (using hash url's or pushState: true).
If this is not the case, you can use localstorage or cookies to make data available across different pages.
Upvotes: 1