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
67
AngularJS Google IO extended
ardroz
0
58
Versionamiento Git
ardroz
0
35
Other Decks in Programming
See All in Programming
Package Management Learnings from Homebrew
mikemcquaid
0
200
Patterns of Patterns
denyspoltorak
0
1.4k
MDN Web Docs に日本語翻訳でコントリビュート
ohmori_yusuke
0
640
Honoを使ったリモートMCPサーバでAIツールとの連携を加速させる!
tosuri13
1
170
CSC307 Lecture 07
javiergs
PRO
0
550
カスタマーサクセス業務を変革したヘルススコアの実現と学び
_hummer0724
0
620
humanlayerのブログから学ぶ、良いCLAUDE.mdの書き方
tsukamoto1783
0
180
ThorVG Viewer In VS Code
nors
0
760
KIKI_MBSD Cybersecurity Challenges 2025
ikema
0
1.3k
CSC307 Lecture 08
javiergs
PRO
0
670
生成AIを使ったコードレビューで定性的に品質カバー
chiilog
1
240
例外処理とどう使い分ける?Result型を使ったエラー設計 #burikaigi
kajitack
16
6k
Featured
See All Featured
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
0
250
A Tale of Four Properties
chriscoyier
162
24k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.4k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
2.8k
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
0
220
What's in a price? How to price your products and services
michaelherold
247
13k
Optimising Largest Contentful Paint
csswizardry
37
3.6k
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
0
3.4k
30 Presentation Tips
portentint
PRO
1
210
Visualization
eitanlees
150
17k
Are puppies a ranking factor?
jonoalderson
1
2.7k
Code Reviewing Like a Champion
maltzj
527
40k
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! ¡