Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
AngularJS – Schmerzlos mit HTML5 und JavaScript
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Ingo Rammer
September 03, 2013
Programming
180
0
Share
AngularJS – Schmerzlos mit HTML5 und JavaScript
German Session from MobileTechConference 2013 in Berlin
Ingo Rammer
September 03, 2013
More Decks by Ingo Rammer
See All by Ingo Rammer
Blockchain für Architekten und Entwickler – Was steckt wirklich dahinter
ingorammer
2
770
Workshop: Von Null auf Hundert - Blockchain-Anwendungen mit Hyperledger Fabric
ingorammer
0
660
Hyperledger Fabric - Die Open-Source Basis für Ihre Blockchain
ingorammer
0
670
Coding Hyperledger Fabric – Smart Contracts und Clients mit Node.js
ingorammer
0
680
OOP 2019: Hyperledger Fabric – Architecture and Smart Contracts of the Open Source Blockchain
ingorammer
1
780
Hyperledger Fabric - Die Open-Source Basis für Ihre Blockchain
ingorammer
0
410
Blockchain - Was steckt wirklich dahinter?
ingorammer
0
240
From 0 to 100: Permissioned blockchains with Hyperledger Fabric and Node
ingorammer
0
260
Von Null auf Hundert: Permissioned Blockchain-Anwendungen mit Java Clients
ingorammer
0
170
Other Decks in Programming
See All in Programming
実践CRDT
tamadeveloper
0
590
AIと共に生きる技術選定 2026
sgash708
0
110
Back to the roots of date
jinroq
0
460
アクセシビリティ試験の"その後"を仕組み化する
yuuumiravy
1
180
〜バイブコーディングを超えて〜 チームで実験し続けたAI駆動開発
tigertora7571
0
170
PHPer、Cloudflare に引っ越す
suguruooki
1
110
VueエンジニアがReactを触って感じた_設計の違い
koukimiura
0
190
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
130
iOS機能開発のAI環境と起きた変化
ryunakayama
0
190
UIの境界線をデザインする | React Tokyo #15 メイントーク
sasagar
2
380
From Formal Specification to Property Based Test
ohbarye
0
360
AIエージェントで業務改善してみた
taku271
0
540
Featured
See All Featured
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
190
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.5k
What’s in a name? Adding method to the madness
productmarketing
PRO
24
4k
Why Our Code Smells
bkeepers
PRO
340
58k
Principles of Awesome APIs and How to Build Them.
keavy
128
17k
Deep Space Network (abreviated)
tonyrice
0
120
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
180
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
62k
Building the Perfect Custom Keyboard
takai
2
740
Leading Effective Engineering Teams in the AI Era
addyosmani
9
1.9k
New Earth Scene 8
popppiees
3
2.1k
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
770
Transcript
Ingo Rammer | thinktecture AngularJS – Schmerzlos mit HTML5 und
JavaScript
Single-Page Applications (SPAs)
jQuery?
MVC/SPA Frameworks Model Binding Routing UI-Templating … unterschiedlichste Design-Ideen und
Implementationen
http://todomvc.com Sept 2013: 66 Versionen der gleichen App
sproutcore Google Trends – Aug 2009 bis Aug 2013
backbone.js sproutcore Google Trends – Aug 2009 bis Aug 2013
backbone.js ember.js sproutcore Google Trends – Aug 2009 bis Aug
2013
backbone.js knockoutjs ember.js sproutcore Google Trends – Aug 2009 bis
Aug 2013
backbone.js knockoutjs ember.js angularjs sproutcore Google Trends – Aug 2009
bis Aug 2013
AngularJS • http://angularjs.org/, v1.2RC1 • HTML-zentrische SPAs – ("HTML enhanced
for web apps!") • Komponenten aus JS + HTML • Einbettbar, DI-basierend, testbar • Corporate Sponsor: Google
Demos http://github.com/ingorammer/talk-AngularJS
Model Binding Allgemein • Je nach Framework – Controller-Initiiert (Templating,
jQuery, Handlebars/Mustache, ...) – Observer-Pattern (Ember, Knockout, ...) – Framework-Initiiert (Angular)
AngularJS: Controller • Business-Logik • Felder auf $scope sichtbar
in der View • KEINE DOM-Manipulationen im Controller!
AngularJS: Scope • Digest-Zyklus • $apply, um einen Zyklus auszulösen
– Directives, Services, Controller
AngularJS: Directives • Komponenten (HTML + JS) • Kapseln DOM-Manipulationen
• Bekommen Daten aus dem $scope • Applikationsspezifisch oder unabhängig (zB angular-UI) • Können existierende Bibliotheken kapseln
AngularJS: Services • Werden per Dependency Injection (DI) an Controller,
Directives und andere Services im Konstruktor übergeben • Allgemeine Logik, die nicht von einem einzelnen Use-Case abhängt (sonst: Controller) • Achtung bei Minification (array-syntax oder $inject)
AngularJS: Routing • $routeProvider in <module>.config – .when() – .otherwise()
Animation • Seit v1.2 • http://slid.es/gsklee/animation-in- angularjs-12
AngularJS • Struktur, die bis zu großen JS Apps skaliert
– Controller, $scope – DOM-Views, Model-Binding – Directives – Routing – Services – Promises • Keine DOM-Manipulationen im Controller! Meist Directives. Selten Services.
Demos: https://github.com/ingorammer/talk-AngularJS Slides: https://speakerdeck.com/ingorammer @ingorammer
[email protected]
http://www.thinktecture.com