Skip to main content

Home/ Web Power Labs/ Group items tagged developing

Rss Feed Group items tagged

webpowerlabs

Developing Backbone.js Applications - - 0 views

  • Understanding render()
  • passing the markup from the template with id item-template to _.template() to be compiled and stored in the todoTpl property when the view is created.
  • he _.template method in Underscore
  • ...17 more annotations...
  • A common Backbone convention is to return this at the end of render()
  • Simple enough.
  • Note the usage of return this; at the end of render.
  • euse the view as a sub-view
  • pre-render the view
  • we make a change to our ListView’s render method
  • When declaring a View, options, el, tagName, id and className may be defined as functions, if you want their values to be determined at runtime.
  • id, cid, and idAttribute properties.
  • Collection.set()
  • Collection.reset()
  • This is handy when dynamically loading a new page of results where you want to blank out the current page of results.
  • Also note that listening to a reset event, the list of previous models is available in options.previousModels, for convenience.
  • The set() method available for Collections can also be used for smart updating of sets of models.
  • RESTful Persistence
  • Fetching models from the server
  • Collections.fetch()
  • Routers
anonymous

How to Develop a Marketing Strategy in 5 Easy Steps - 0 views

  •  
    MARKETING STRATEGY 
1 - 8 of 8
Showing 20 items per page