Start New Discussion within our Web Development Community

I have idea about StateManager in Backbone.js and read its Documentation and I also realized how to switch beteen different states. But i still don't know how can I store my application level data or models using statemanager and secondly are my states object which I addd into statemanager, they only related to views only or can be used with models ? I have problem to understand where should I used it in my backbone applicaiton. Please guide thoroughly?

@touseef4pk

But i still don't know how can I store my application level data or models using statemanager and secondly are my states object which I addd into statemanager, they only related to views only or can be used with models ? I have problem to understand where should I used it in my backbone applicaiton.

Since I got no idea what you done so far. I assume you are trying to save data with backbone.js file?

This is the code that you need to do that:

http://backbonejs.org/#Model-save

To View the code then you need this:

http://backbonejs.org/#View-constructor

Remeber to link js file so it can work.

This article has been dead for over six months. Start a new discussion instead.