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
Micro Frontendsで築いた 共通基盤と運用の試行錯誤 / Building a Shared Platform with Micro Frontends: Operational Learnings
kyntk
0
120
JEP 496 と JEP 497 から学ぶ耐量子計算機暗号入門 / Learning Post-Quantum Crypto Basics from JEP 496 & 497
mackey0225
2
460
レイトレZ世代に捧ぐ、今からレイトレを始めるための小径
ichi_raven
0
460
「10分以内に機能を消せる状態」 の実現のためにやっていること
togishima
1
530
CSC509 Lecture 13
javiergs
PRO
0
260
TypeScript 5.9で使えるようになった import defer でパフォーマンス最適化を実現する
bicstone
1
380
TVerのWeb内製化 - 開発スピードと品質を両立させるまでの道のり
techtver
PRO
3
1.2k
高単価案件で働くための心構え
nullnull
0
160
Private APIの呼び出し方
kishikawakatsumi
3
900
ソフトウェア設計の課題・原則・実践技法
masuda220
PRO
20
15k
Honoを技術選定したAI要件定義プラットフォームAcsimでの意思決定
codenote
0
250
「正規表現をつくる」をつくる / make "make regex"
makenowjust
1
730
Featured
See All Featured
Building Adaptive Systems
keathley
44
2.8k
The World Runs on Bad Software
bkeepers
PRO
72
12k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
253
22k
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.4k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
2.6k
KATA
mclloyd
PRO
32
15k
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
1
45
Bootstrapping a Software Product
garrettdimon
PRO
307
110k
Automating Front-end Workflow
addyosmani
1371
200k
How GitHub (no longer) Works
holman
315
140k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
1.8k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
54k
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! ¡