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"
});
});
Previous4. Learn backbone.js tutorial from scratch for beginners (Part 7) Delegate Events in backbone.jsNext6. Learn backbone.js tutorial from scratch for beginners(Part 9) Pass Model data to backbone.js View
Last updated
Was this helpful?