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
64
AngularJS Google IO extended
ardroz
0
55
Versionamiento Git
ardroz
0
32
Other Decks in Programming
See All in Programming
Composerが「依存解決」のためにどんな工夫をしているか #phpcon
o0h
PRO
1
240
AWS CDKの推しポイント 〜CloudFormationと比較してみた〜
akihisaikeda
3
310
プロダクト志向なエンジニアがもう一歩先の価値を目指すために意識したこと
nealle
0
110
LT 2025-06-30: プロダクトエンジニアの役割
yamamotok
0
510
Select API from Kotlin Coroutine
jmatsu
1
190
Blazing Fast UI Development with Compose Hot Reload (droidcon New York 2025)
zsmb
1
230
DroidKnights 2025 - 다양한 스크롤 뷰에서의 영상 재생
gaeun5744
3
320
Create a website using Spatial Web
akkeylab
0
300
Is Xcode slowly dying out in 2025?
uetyo
1
200
アンドパッドの Go 勉強会「 gopher 会」とその内容の紹介
andpad
0
270
ReadMoreTextView
fornewid
1
480
データの民主化を支える、透明性のあるデータ利活用への挑戦 2025-06-25 Database Engineering Meetup#7
y_ken
0
320
Featured
See All Featured
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
53
2.8k
Building Applications with DynamoDB
mza
95
6.5k
Testing 201, or: Great Expectations
jmmastey
42
7.5k
Raft: Consensus for Rubyists
vanstee
140
7k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
8
670
GitHub's CSS Performance
jonrohan
1031
460k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
233
17k
The World Runs on Bad Software
bkeepers
PRO
69
11k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.3k
Java REST API Framework Comparison - PWX 2021
mraible
31
8.6k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
252
21k
Intergalactic Javascript Robots from Outer Space
tanoku
271
27k
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! ¡