Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Backbone Sync Example


     Backbone.sync = function(method, model) {
      json = model.toJSON();
      return json["Country"];
         };
         var person = new Backbone.Model ({
            Country:"Costa Rica",
            Name:"CR"
         });
        console.log(person.fetch());
 
PREVIOUS NEXT
Tagged: #Backbone #Sync #Example
ADD COMMENT
Topic
Name
7+4 =