serving the solutions day and night

Pages

Monday, July 25, 2016

Backbone.js

http://backbonejs.org/

Models, Views & Collections












var Books = Backbone.Collection.extend({
  url: '/books'
});

Methods:
GET  /books/ .... collection.fetch();
POST /books/ .... collection.create();
GET  /books/1 ... model.fetch();
PUT  /books/1 ... model.save();
DEL  /books/1 ... model.destroy();