Backbone JS central model where all views can use

Posted by chchrist on Stack Overflow See other posts from Stack Overflow or by chchrist
Published on 2012-04-02T15:34:39Z Indexed on 2012/04/02 17:29 UTC
Read the original article Hit count: 174

Filed under:

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

© Stack Overflow or respective owner

Related posts about requirejs