Showing posts with label backbone. Show all posts
Showing posts with label backbone. Show all posts
Monday, May 21, 2012
storing backbone data inside dom element using jquery and retrieve it.
storing:
$("#zone_data").data('zone', z.toJSON())
retrieving
$("#zone_data").data('zone')
z.toJSON() is a backbone model.
Labels:
backbone,
backbone model,
dom storage,
Jquery,
storage
Tuesday, May 8, 2012
Backbone passing value to views
var view = new SentenceView({model: sentence});
var rendered = this.template(this.options.model.toJSON());
Subscribe to:
Posts (Atom)