backbone_tips_tricks

Created: 2014-05-19 19:13
Updated: 2014-12-20 10:18

README.md

Backbone Tips & Trick for Beginner

--- loading popup
----------------- get data
--------------------------- set data to view, stop loading, insert to view
--- done
tail /usr/local/apache/logs/error_log > error.log
less /usr/local/apache/logs/error_log > error.log
cat /usr/local/apache/logs/error_log > error.log

#####SOME RESOURCE FOR DEVELOPMENT

  1. Font Awesome
  2. Bootstrap Tour
  3. mustache
  4. Backbonejs
  5. HandleBar
  6. Backbone Examples
  7. Webfont Generator

Chat Room

https://gitter.im/phplaw/BackbonejsDevel

Save model and trigger function:

this.model.save(null, {
    success: function (model, response) {
        console.log("success");
    },
    error: function (model, response) {
        console.log("error");
    }
});

Get element information when click on It in a view ...

editPost: function(e){
  e.preventDefault();
  var id = $(e.currentTarget).data("id");
  var item = this.collection.get(id);
}
Cookies help us deliver our services. By using our services, you agree to our use of cookies Learn more