angularjs vs jquery
DESCRIPTION
This talk by Tim Messerschmidt was held at Berlin's HTML5 Meet-upTRANSCRIPT
February 2013, Berlin1
Tim MesserschmidtDeveloper Evangelist
@SeraAndroid
AngularJS
vs jQuery
… or why Angular rocks!
2
3
Big advantage
• Lots of plugins• Chances are high people have a
cached version already• Big community• Established since 2006
4
Negative
Did you ever use all the functionality?
5
6
Expressions{{ do something }}
Can be used for:• Calculations• Accessing models• Filtering
… and much more!
{{ 1 + 2 }}{{ 1 + 2 == 3}}
{{ 3 > 4 }}Hi {{ name }}!
7
Repeating contentng-repeat
Usage: repeat stuff automatically in a very
HTML-like way
8
Filtering contentfilter: {{ expression }}
9
jqLiteFor basic jQuery support
But: Let Angular do the DOM-magicand concentrate on working with yourmodels.
If you need to use jQuery avoid using $.
10
Outlook… or what can I do with Angular?
• Routing• Templating
• ng-view• Dependency Injection• Event Handlers• XHR & REST services
• $http (low-level)• $resource (high-level)
QUESTIONS?
11