-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Noob question... $global; variable #150
Comments
@moses5407 I didn't understand what you mean by global variable, could you share an example of what you're trying to do? |
I was just wondering of the $global.set is available in the browser via cell in the same way it can be used in jasonette to persist data between sessions. I haven't been able to find a clear answer on availability of global variables in browsers. |
@moses5407 haha no, cell is completely separate from Jasonette (although you will see some close integrations between the two in the future). the |
Yep..I knew the difference .. but not how that related using a global for persistence. Thanks! |
Now, why didn't I just ask if there's a local storage solution available for offline situations in cell? |
Cell is really just the 3 rules https://github.com/intercellular/cell#there-are-only-3-rules and nothing more. It's all about how to structure an app, and the whole point of the library is that you don't need some additional API, you use web browser's native API. So it doesn't need any "localstorage solution". You just use window.localStorage |
Heh..I'm sure that is basic info to you but my knowledge of localStorage is
pretty bad..so thanks for taking the time to answer, especially with such a
helpful link!
Cheers!
On Sun, Jul 23, 2017 10:54 AM, gliechtenstein [email protected] wrote:
Cell is really just the 3 rules
https://github.com/intercellular/cell#there-are-only-3-rules and nothing more.
It's all about how to structure an app, and the whole point of the library is
that you don't need some additional API, you use web browser's native API. So it
doesn't need any "localstorage solution". You just use window.localStorage
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Is this available in the browser:
Thanks!
The text was updated successfully, but these errors were encountered: