Backbone JS central model where all views can use
- by chchrist
I am new to backbone js and require js.
I use requirejS to organize my backbone code into modules. I don't know if this has any importance to what I want though. I want to have a central model where all my views will have access to. They should be able to get and set values. I don't want to use it as each view model though. I need to keep in memory search options, user status (logged in/out) etc.
Any ideas?
EDIT
Maybe the answer is here?
Share resources across different amd modules