Valeriane
Valeriane

Reputation: 954

Backbone object global

I am developping an application with backbone

Is it possible to create an object global :

thank you for your helps

Upvotes: 0

Views: 104

Answers (1)

Andrei Rosca
Andrei Rosca

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

Related Questions