5. Learn backbone.js tutorial from scratch for beginners(Part 8) Introduction of models in backbone.

C:\Users\Administrator\Desktop\gulp\app.js

jQuery(document).ready(function($) {
  var FirstModel = Backbone.Model.extend({
    initialize: function() {
      console.log('Hello, i am here');
    }
  });
  fmodel = new FirstModel();
  fmodel.set({
  	name: "Lionel 1",
  	author: "Lionel 2",
  	anchor: "Lionel 3"
  });
});

Last updated

Navigation

Lionel

@Copyright 2023