SlideShare a Scribd company logo
Backbonejs
What is BackBone.js
• BackBone is a Javascript Framework
• Created by Jeremy Ashkenas in 2010, an author
of CoffeeScript
• It’s a layer above existing JavaScript DOM
manipulation libraries like jQuery, Zepto etc
BackBone.js Features
• Minimalistic
• Modular
• Perfect OOP design
• Over 100 available extensions:
https://github.com/documentcloud/backbone/wiki/Exte
nsions,-Plugins,-Resources
• Community
Main Concepts
• Model
• Collection
• View
• Router
• Events
Model
• Persist data
• Manipulate data
• Validate data
• Trigger an event on add, change data
• Create a new model by calling:
var SomeModel = Backbone.Model.extend({
defaults: {
SomeKey: ‘some value’
}
});
View
• Rendering logic
• Use template
• Act as controller
• Update model
• Create a new view by calling:
var SomeView = Backbone.View.extend({
initialize: function () {
// initialize content goes here
}
});
Model and View Binding
el : This is used to get the element of DOM
model : This is used to point/bind the view with model
Controller Collection
• It is a collection of models
• Manage ordered set of models
• Create a new collection by calling:
Router
• This is useful feature for JavaScript application which need URL routing.
• Router maps URL to actions
• Create a new collection by calling:
When URL matches with url-pattern it executes function actionFunction
Events
• Events is a module that can be mixed in to any object, giving the object the ability
to bind and trigger custom named events
• In the example below an event invokes a method/function in a view.

More Related Content

PPTX
Javascript for Wep Apps
PPT
Integrating AngularJS with Drupal 7
PDF
Drupal & AngularJS - DrupalCamp Spain 2014
PDF
Vue - the Progressive Framework
ODP
BackboneJS and friends
PPTX
Microservices: Yes or not?
PDF
AEM/CQ Montreal User Group Meeting - March 25, 2015 - Takeaways from Adobe Su...
PDF
Backbone.js slides
Javascript for Wep Apps
Integrating AngularJS with Drupal 7
Drupal & AngularJS - DrupalCamp Spain 2014
Vue - the Progressive Framework
BackboneJS and friends
Microservices: Yes or not?
AEM/CQ Montreal User Group Meeting - March 25, 2015 - Takeaways from Adobe Su...
Backbone.js slides

What's hot (20)

PPTX
BackboneJS Training - Giving Backbone to your applications
PDF
React.js - and how it changed our thinking about UI
PPTX
Javascript Myths and its Evolution
PDF
Adobe AEM for Business Heads
PPT
The Mobile Development Landscape
PPT
Intro to SPA using JavaScript & ASP.NET
PDF
Alfresco Day Stockholm 2015 - Rapid UI Development
PDF
Realtime web apps rails
PPTX
Single page App
PPTX
Angularjs Basics
PPTX
Why XAF and XPO?
PPTX
Azure Serverless Conf
PPTX
How to ease the learning curve
PDF
Intro to BackboneJS + Intermediate Javascript
PPTX
Backbonejs
PPTX
Introduction to Backbone.js
PDF
SpringPeople Introduction to MongoDB Administration
PDF
Understanding backbonejs
PDF
Backbone js in action
PDF
ASP.NET Scalability - VBUG London
BackboneJS Training - Giving Backbone to your applications
React.js - and how it changed our thinking about UI
Javascript Myths and its Evolution
Adobe AEM for Business Heads
The Mobile Development Landscape
Intro to SPA using JavaScript & ASP.NET
Alfresco Day Stockholm 2015 - Rapid UI Development
Realtime web apps rails
Single page App
Angularjs Basics
Why XAF and XPO?
Azure Serverless Conf
How to ease the learning curve
Intro to BackboneJS + Intermediate Javascript
Backbonejs
Introduction to Backbone.js
SpringPeople Introduction to MongoDB Administration
Understanding backbonejs
Backbone js in action
ASP.NET Scalability - VBUG London
Ad

Similar to Backbonejs (20)

KEY
Give Your JavaScript Apps A Spine
KEY
Give Your JavaScript Apps Some Spine
PDF
[2015/2016] Backbone JS
PDF
Developing maintainable Cordova applications
PPT
Backbone.js
PPT
Backbone introdunction
PPTX
Backbone introduction
PDF
Backbone JS for mobile apps
PPTX
Drupal Backbone.js in the Frontend
PPTX
Backbone
PPTX
Backbone.js
PDF
Introduction to Backbone.js
PDF
Introduction to backbone js
PDF
Backbone Dev Talk by Max Mamis
PPTX
Backbonemeetup
PDF
Backbone
PPTX
Backbone the Good Parts
PDF
Backbone.js
PDF
Tikal's Backbone_js introduction workshop
PDF
Resumen Backbone.js en Ingles
Give Your JavaScript Apps A Spine
Give Your JavaScript Apps Some Spine
[2015/2016] Backbone JS
Developing maintainable Cordova applications
Backbone.js
Backbone introdunction
Backbone introduction
Backbone JS for mobile apps
Drupal Backbone.js in the Frontend
Backbone
Backbone.js
Introduction to Backbone.js
Introduction to backbone js
Backbone Dev Talk by Max Mamis
Backbonemeetup
Backbone
Backbone the Good Parts
Backbone.js
Tikal's Backbone_js introduction workshop
Resumen Backbone.js en Ingles
Ad

Recently uploaded (20)

PDF
iTop VPN Free 5.6.0.5262 Crack latest version 2025
PDF
Website Design Services for Small Businesses.pdf
PPTX
Oracle Fusion HCM Cloud Demo for Beginners
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
PPTX
assetexplorer- product-overview - presentation
PDF
Tally Prime Crack Download New Version 5.1 [2025] (License Key Free
PDF
Digital Systems & Binary Numbers (comprehensive )
DOCX
Greta — No-Code AI for Building Full-Stack Web & Mobile Apps
PDF
Cost to Outsource Software Development in 2025
PDF
Download FL Studio Crack Latest version 2025 ?
PPTX
Monitoring Stack: Grafana, Loki & Promtail
PPTX
Weekly report ppt - harsh dattuprasad patel.pptx
PDF
wealthsignaloriginal-com-DS-text-... (1).pdf
PPTX
CHAPTER 2 - PM Management and IT Context
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 41
PDF
Autodesk AutoCAD Crack Free Download 2025
PDF
Nekopoi APK 2025 free lastest update
PDF
AI-Powered Threat Modeling: The Future of Cybersecurity by Arun Kumar Elengov...
PDF
17 Powerful Integrations Your Next-Gen MLM Software Needs
PPTX
Embracing Complexity in Serverless! GOTO Serverless Bengaluru
iTop VPN Free 5.6.0.5262 Crack latest version 2025
Website Design Services for Small Businesses.pdf
Oracle Fusion HCM Cloud Demo for Beginners
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
assetexplorer- product-overview - presentation
Tally Prime Crack Download New Version 5.1 [2025] (License Key Free
Digital Systems & Binary Numbers (comprehensive )
Greta — No-Code AI for Building Full-Stack Web & Mobile Apps
Cost to Outsource Software Development in 2025
Download FL Studio Crack Latest version 2025 ?
Monitoring Stack: Grafana, Loki & Promtail
Weekly report ppt - harsh dattuprasad patel.pptx
wealthsignaloriginal-com-DS-text-... (1).pdf
CHAPTER 2 - PM Management and IT Context
Internet Downloader Manager (IDM) Crack 6.42 Build 41
Autodesk AutoCAD Crack Free Download 2025
Nekopoi APK 2025 free lastest update
AI-Powered Threat Modeling: The Future of Cybersecurity by Arun Kumar Elengov...
17 Powerful Integrations Your Next-Gen MLM Software Needs
Embracing Complexity in Serverless! GOTO Serverless Bengaluru

Backbonejs

  • 2. What is BackBone.js • BackBone is a Javascript Framework • Created by Jeremy Ashkenas in 2010, an author of CoffeeScript • It’s a layer above existing JavaScript DOM manipulation libraries like jQuery, Zepto etc
  • 3. BackBone.js Features • Minimalistic • Modular • Perfect OOP design • Over 100 available extensions: https://github.com/documentcloud/backbone/wiki/Exte nsions,-Plugins,-Resources • Community
  • 4. Main Concepts • Model • Collection • View • Router • Events
  • 5. Model • Persist data • Manipulate data • Validate data • Trigger an event on add, change data • Create a new model by calling: var SomeModel = Backbone.Model.extend({ defaults: { SomeKey: ‘some value’ } });
  • 6. View • Rendering logic • Use template • Act as controller • Update model • Create a new view by calling: var SomeView = Backbone.View.extend({ initialize: function () { // initialize content goes here } });
  • 7. Model and View Binding el : This is used to get the element of DOM model : This is used to point/bind the view with model
  • 8. Controller Collection • It is a collection of models • Manage ordered set of models • Create a new collection by calling:
  • 9. Router • This is useful feature for JavaScript application which need URL routing. • Router maps URL to actions • Create a new collection by calling: When URL matches with url-pattern it executes function actionFunction
  • 10. Events • Events is a module that can be mixed in to any object, giving the object the ability to bind and trigger custom named events • In the example below an event invokes a method/function in a view.