Create MVC Application Using Backbone JS: Presenter: Padmalochan, Mindfire Solutions Date: 14/04/2014
Create MVC Application Using Backbone JS: Presenter: Padmalochan, Mindfire Solutions Date: 14/04/2014
using Backbone js
Presenter: Padmalochan, Mindfire Solutions
Date: 14/04/2014
Agenda
Why should we use backbone.
Client-Side Templating.
No round tripping
Performance is increased.
Basics of Javascript.
JQuery.
FireBug,WebKit.
Required Dependencies
Underscore.
Jquery/Zepto.
http://backbonejs.org/
Pros : Cons:
1. Fast 1. SEO problem (can't
2. Highly Interactive. index)
2. Difficult to test
3. Scalable
3. Security issues.
Presenter: Padmalochan, Mindfire Solutions
Models
Provide LifeCycle.
Read attribute with get method and write with set method.
Model Identity
Defaults,initialize.
Backbone.Model vs Backbone.Model.extend
Model have save,fetch and destroy methods for synchronizing with the
server
Underscore.js Template.
Underscore Templates
<% ...%> - evaluate an expression and render html escaped in result inline.
https://www.facebook.com/MindfireSolutions
http://www.linkedin.com/company/mindfire-solutions
http://twitter.com/mindfires