Upload
gourav-jain-mcts
View
79
Download
0
Embed Size (px)
Citation preview
JAVASCRIPT FRAMEWORKS
Maintained by Google and community
Initially Released on 2009 Current stable release
1.4.7 ~37kb total (gzip / minified)
Created by Jeremy Ashkenas Initially Released on October
2010, Current stable release 1.2.3 ~6.5kb total (gzip / minified)
ANGULAR JS VS BACKBONE JS
Scoring system
OK Not Good Good
DEPENDENCIES
NO DEPENDENCIES
DATA BINDING
Process that establishes a connection between the application UI (User Interface) and business logic
Data-binding is fully supported Models use standard JSON properties (e.g. car.color =
"red";) Provides Option for Creating custom bindings
Data-binding is not supported by default.
There are plugins available to support Data-binding
Used for routing your applications URL's when using hash tags(#)
Maps an url to a Javascript function
ROUTERS
Router is very simple
Router is similar to Backbone’s
VIEWS
How the stuffs are displayed in the screen
Simple and straight forward. Easy for developer with JQuery and DOM skills Simply extend Backbone.View, grab an element and
put stuff in it No Official Templating, but easy to add using
Uses HTML as templating language Automatically pulls in HTML templates via AJAX
when needed
TESTING
Support for testing application
No default test solution; Test it your ownCan use following third party solutions
Fantastic test support. Designed from the beginning to be easy to test.Karma developed by Angular JS team is popular test runner
DATA
How do I get data from the sever?
Uses JQuery’s $.ajax to power Backbone. Very Easy to understand Default behavior is relatively easy to override
No JQuery Can do with Angular’ s $http but much better using
$resource Very good API
Requires the ngResource module to be installed.
How easy to get help?COMMUNITY /DOCUMENTATION
THIRD PARTY INTEGRATION How easy to integrate another JS library?
DEVELOPMENT TOOLS
FINAL CHOICE