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
Promesas AngularJS
Search
Daniel Arturo Rodriguez Rosas
October 25, 2014
Programming
0
480
Promesas AngularJS
Presentación de la plática "Yo te espero, Angular" sobre promesas en AngularJS
Daniel Arturo Rodriguez Rosas
October 25, 2014
Tweet
Share
More Decks by Daniel Arturo Rodriguez Rosas
See All by Daniel Arturo Rodriguez Rosas
Angular - Polymer
ardroz
0
66
AngularJS Google IO extended
ardroz
0
57
Versionamiento Git
ardroz
0
34
Other Decks in Programming
See All in Programming
はじめてのDSPy - 言語モデルを『プロンプト』ではなく『プログラミング』するための仕組み
masahiro_nishimi
3
13k
iOSでSVG画像を扱う
kishikawakatsumi
0
160
スキーマ駆動で、Zod OpenAPI Honoによる、API開発するために、Hono Takibiというライブラリを作っている
nakita628
0
310
CSC305 Lecture 08
javiergs
PRO
0
270
TransformerからMCPまで(現代AIを理解するための羅針盤)
mickey_kubo
6
3.6k
「ちょっと古いから」って避けてた技術書、今だからこそ読もう
mottyzzz
12
7.1k
Devoxx BE - Local Development in the AI Era
kdubois
0
140
フロントエンド開発のためのブラウザ組み込みAI入門
masashi
7
3.4k
CSC305 Lecture 06
javiergs
PRO
0
270
Pythonに漸進的に型をつける
nealle
1
120
One Enishi After Another
snoozer05
PRO
0
150
NIKKEI Tech Talk#38
cipepser
0
140
Featured
See All Featured
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
115
20k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
9
930
How To Stay Up To Date on Web Technology
chriscoyier
791
250k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
36
6.1k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
230
22k
For a Future-Friendly Web
brad_frost
180
10k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
26
3.1k
The Illustrated Children's Guide to Kubernetes
chrisshort
49
51k
Context Engineering - Making Every Token Count
addyosmani
8
300
Intergalactic Javascript Robots from Outer Space
tanoku
272
27k
Balancing Empowerment & Direction
lara
5
700
Transcript
HOLA! ¡
Daniel Rodriguez @Ardroz
YO TE ESPERO, ANGULAR
[0] Intro [1] $q [2] then [3] success/error [4] chaining
[5] Conclusión
¿Por qué? [0] Intro [1] $q [2] then [3] success/error
[4] chaining [5] Conclusión Programación asíncrona Código bloqueante Callback Hell Manejo de errores
Promesas “Una promesa representa el resultado eventual de una operación.
Esta especifica que hacer cuando una operación es concluida, independientemente del estado de su conclusión (éxito/error)” [0] Intro [1] $q [2] then [3] success/error [4] chaining [5] Conclusión
[0] Intro [1] $q [2] then [3] success/error [4] chaining
[5] Conclusión
$q Kris Kowal’s Q $q.defer() $q.all() [0] Intro [1] $q
[2] then [3] success/error [4] chaining [5] Conclusión
[0] Intro [1] $q [2] then [3] success/error [4] chaining
[5] Conclusión
[0] Intro [1] $q [2] then [3] success/error [4] chaining
[5] Conclusión
[0] Intro [1] $q [2] then [3] success/error [4] chaining
[5] Conclusión
[0] Intro [1] $q [2] then [3] success/error [4] chaining
[5] Conclusión
[0] Intro [1] $q [2] then [3] success/error [4] chaining
[5] Conclusión
[0] Intro [1] $q [2] then [3] success/error [4] chaining
[5] Conclusión .success() .error() .then()
[0] Intro [1] $q [2] then [3] success/error [4] chaining
[5] Conclusión ATENCIÓN Las funciones success/error no forman parte del estándar de promesas, son agregadas como propiedades por parte de $http.
[0] Intro [1] $q [2] then [3] success/error [4] chaining
[5] Conclusión
[0] Intro [1] $q [2] then [3] success/error [4] chaining
[5] Conclusión
Preguntas / Respuestas [0] Intro [1] $q [2] then [3]
success/error [4] chaining [5] Conclusión
¡Quiero más! [0] Intro [1] $q [2] then [3] success/error
[4] chaining [5] Conclusión $q service: docs.angularjs.org/api/ng/service/$q Kris Kowald’s Q: github.com/kriskowal/q Promesas a detalle: dwmkerr.com/promises-in-angularjs-the-definitive-guide/#advancedpromiseschaining Promesas ES6: html5rocks.com/en/tutorials/es6/promises/ Slides: speakerdeck.com/ardroz/promesas-angularjs Cualquier duda, sugerencia, felicitación, reclamo, invitación, etc: Tw: @Ardroz Fb: /DanielArturoRodriguezRosas G+: +DanielRodriguezRosas
Adiós! ¡