Learn backbone.js tutorial from scratch for beginners(Part 9) Pass Model data to backbone.js Views

preview_player
Показать описание


1. Create model,
2. Set values for them,
3. Assign to view,
4. Now, use in views

Create Model
====================

initialize:function(){
}

});

Model initialization with values
====================
Method #1
var fmodel = new Model({
name:"Sanjay Kumar",
youtube:"Online Web Tutor",
team:"Profotech Solutions Team"
});
Method #2
name:"Sanjay Kumar",
youtube:"Online Web Tutor",
team:"Profotech Solutions Team"
});*/

model: fmodel, // assigning to view
initialize:function(){
},
render:function(){
// Calling in view by using 'this' reference
}

});

var mview = new ModelView();


SOCIAL :
===============

Also you can learn Wordpress Custom
===============



Tags
===============
online web tutor,
profotech solutions,
backbone js for beginners,
backbone js tutorial for beginners in hindi,
backbone js tutorial for beginners with examples,
backbone js tutorial youtube,
backbone js tutorial video,
owt tuts,
online web tutorials,

Thanks
Online Web Tutor
Keep learning and Sharing :)
Рекомендации по теме
join shbcf.ru