Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Backbone Sync And Fetch Example

     Backbone.sync = function(method, model) {
         return method;
         };
         var person = new Backbone.Model ({
            Country:"Venus",
            Name:"Mister Vensusresident"
         });
        console.log(person.fetch());
        
       /*sync() can be thought of as what  to do with the data when we call fetch()*/
 
PREVIOUS NEXT
Tagged: #Backbone #Sync #And #Fetch #Example
ADD COMMENT
Topic
Name
9+4 =