AngularJS Promises with $q

  Рет қаралды 79,630

Joe Maddalone

Joe Maddalone

Күн бұрын

Пікірлер: 57
@SuperNirupam
@SuperNirupam 8 жыл бұрын
Please, explain in details like whats var q = $q.defer() means , and how its different from $http and benefits etc
@mohibwasay5102
@mohibwasay5102 10 жыл бұрын
Awesome Illustration. Thanks Joe.! Was seriously having trouble in getting into promises! :D
@JoeMaddalone
@JoeMaddalone 11 жыл бұрын
My example was pretty simplistic, but the benefit is design. Consider if the promise was not using the same function over and over, but a series of tasks that upon an error can bypass all other tasks to return an error without the need for dozens of callbacks. pseudo code here: getUser('M') .then(f(u){ return u.Comment()}) .then(f(c){if(c.Good){return goodResp()} else {return badResp()}}) .then(f(resp){return Post(resp)}) .then( f(resolve){log("Posted")}, f(err{log(err)} )
@FabianLopez_lomba
@FabianLopez_lomba 10 жыл бұрын
which plugin do you use for angular autocomplete?
@JoeMaddalone
@JoeMaddalone 10 жыл бұрын
I actually have 3 installed: AngularJS: sublime.wbond.net/packages/AngularJS AngularZen: sublime.wbond.net/packages/AngularZen Angular Snippets: sublime.wbond.net/packages/AngularJS%20Snippets Probably some conflicts happening in there somewhere, but... you asked. :)
@FabianLopez_lomba
@FabianLopez_lomba 10 жыл бұрын
Joe Maddalone I'll check them out, nice intro to promises. They don't look so scary now!
@SreekanthKarini
@SreekanthKarini 8 жыл бұрын
Very clear explanation about what actually $q does, it's helped a lot. may i know is this synchronous calling?
@StevenBenjamin
@StevenBenjamin 10 жыл бұрын
Thank you! - This is the best tutorial on promises yet!
@heymauriciosoares
@heymauriciosoares 11 жыл бұрын
Hello Joe, great video thanks! Let me ask you one thing (i hope it doesn't sound dumb kkk)... what would be a real case usage of promises? for example, what would that help in a real application? Because i can't see why would I use promises instead of a simple recursive function which returns a value based on its conditions... I don't think i got the real purpose of using it... :/ Thanks!
@francescopiazza4882
@francescopiazza4882 4 жыл бұрын
I didn't catch what's good in Promises...
@miroslavmatovic
@miroslavmatovic 8 жыл бұрын
Thank you. This was a very nice and concise tutorial. Q: Regarding line "return q.promise;", I have a question: I have seen it written as "return q.$promise;". What is the difference between .promise and .$promise ?
@eternoaprendiz1723
@eternoaprendiz1723 9 жыл бұрын
Excelent demostration, make me understand what more than 10 links can't explain me on letters thank you
@nemiltimbadia7134
@nemiltimbadia7134 9 жыл бұрын
Awesome...Couldn't get it from other sources...Super clear here....
@johnh7581
@johnh7581 10 жыл бұрын
Thanks good stuff. I understand $q now with your example - but how would it look like without using the promise spec in this case I was wondering - in order to gain more clarity. I was trying it out with a jsbin - but I think I am missing something in the logic. jsbin.com/bedih/1/edit - any feedback would be great.
@remariorichards8237
@remariorichards8237 9 жыл бұрын
You seriously need to explain your stuff man, all u do is type .Really nothing else
@rajeshwarchinna
@rajeshwarchinna 8 жыл бұрын
it's like try catch error handling
@snopocatepetl
@snopocatepetl 9 жыл бұрын
good video, but a messy programming style, mixing colons and not.
@hiddenblade999
@hiddenblade999 7 жыл бұрын
I was so confused by $q until I watched this demo like 3 times. Thank you.
@BULLSHXTYT
@BULLSHXTYT 11 жыл бұрын
This one is a bit harder than other tutorials, I don't quite know what q is but I will check it out myself. Angular is freaking awsome!
@ktaakash
@ktaakash 7 жыл бұрын
OMG, why on earth are you in such a hurry?
@HindiSongsHITS
@HindiSongsHITS 10 жыл бұрын
Great video series on Angular.
@heymauriciosoares
@heymauriciosoares 11 жыл бұрын
wow i guess you are right! I just keep learning with your tutorials hahaha Thanks Joe!
@ajaykoranne3735
@ajaykoranne3735 9 жыл бұрын
Straightforward and simple to understand video. Very good!
@orz5516
@orz5516 6 жыл бұрын
angular.?
@amitavroydev
@amitavroydev 9 жыл бұрын
Very helpful and nicely explained. Now finally I know $q and how defered works :) Thanks
@chetanpl
@chetanpl 7 жыл бұрын
Very very clearly my concept.
@SusanElliottSim
@SusanElliottSim 9 жыл бұрын
Thanks for this. It helped me more than the web pages that I've been reading.
@christophermagana1017
@christophermagana1017 6 жыл бұрын
Yeah i dont understand what you're doing. This should have already pretty much been typed out and you go through explaining it.
@davidgonzales-ec8bo
@davidgonzales-ec8bo 10 жыл бұрын
perfect. Just helped me clarify my understanding of promises. best yet acutally.
@JoeMaddalone
@JoeMaddalone 10 жыл бұрын
Really glad it helped! Thanks.
@TheKarantan
@TheKarantan 9 жыл бұрын
Douglas wouldn't be happy to see all these missing semicolons :)
@DeusGladiorum
@DeusGladiorum 7 жыл бұрын
Why do you sound like John Goodman?
@SuperYouVIN
@SuperYouVIN 10 жыл бұрын
Thank you for this tutorial. A very good example. I could see the usefulness of promises
@ThijsErends
@ThijsErends 8 жыл бұрын
Awesome explanation, Thank you for the effort you put in to your videos
@jcgofredo2239
@jcgofredo2239 10 жыл бұрын
Bookmarked* :)
@rohit-ld6fc
@rohit-ld6fc 8 жыл бұрын
a better example is what was needed..
@girishvarma8813
@girishvarma8813 6 жыл бұрын
Man, first explain what is the problem and why we use $q. Then go to how to implement. Any one can get code from internet.
@Nikhilkumar-qd3oq
@Nikhilkumar-qd3oq 7 жыл бұрын
i couldn't understand
@SaiPrakash16
@SaiPrakash16 9 жыл бұрын
Really helpful! good presentation..
@David-ol7zz
@David-ol7zz 10 жыл бұрын
I got it finally working. Thank you very much, very good video.
@raffaellafico7652
@raffaellafico7652 7 жыл бұрын
Thanks
@TheAlgerianDz
@TheAlgerianDz 10 жыл бұрын
Thank you !!
@Dev_Everything
@Dev_Everything 9 жыл бұрын
Great job sir!!!!. Thank you!
@kuraibankusu
@kuraibankusu 8 жыл бұрын
Thank you for this!
@TheAkhilchalla
@TheAkhilchalla 9 жыл бұрын
Awsome video helped me a lot
@louisik1
@louisik1 8 жыл бұрын
lost me at 4:30
@ktalovmorx8307
@ktalovmorx8307 5 жыл бұрын
Hey hermano, soy un analfabeto...puedes explicar mejor, osea un ejemplo mas practico..? Para que haria tanto para tan poca cosa?
@aakashggujju
@aakashggujju 4 жыл бұрын
Awesome 😊
@narasimharao1537
@narasimharao1537 6 жыл бұрын
cool this helped me
@Ricardo8605br
@Ricardo8605br 6 жыл бұрын
Muito legal!
@neerajchaudhary4079
@neerajchaudhary4079 7 жыл бұрын
Joe... I think its tutorial for viewers like me who are new to Angular. We understand you knew the stuff but better to explain others in simple and easy manner rather then creating the messy and complex things. Really out of sense of understanding.
@kothuriraogopi8584
@kothuriraogopi8584 7 жыл бұрын
super
@dewiwilliams4970
@dewiwilliams4970 9 жыл бұрын
Disappointing to see you are creating professional videos and your copy of Sublime is unregistered.
@roach_iam
@roach_iam 9 жыл бұрын
+Dewi Williams Why spend $50 when you can just use the unregistered version, which has all features for free?
@LO000L
@LO000L 8 жыл бұрын
+Kyle Roach To support the developer of sublime? Lol.
Creating Reusable Directives in AngularJS
15:13
Joe Maddalone
Рет қаралды 54 М.
John Papa - 10 AngularJS Patterns - Code on the Beach 2014
1:01:27
Code on the Beach
Рет қаралды 83 М.
Sigma girl VS Sigma Error girl 2  #shorts #sigma
0:27
Jin and Hattie
Рет қаралды 124 МЛН
I'm Ditching Try/Catch for Good!
10:29
Web Dev Simplified
Рет қаралды 189 М.
AngularJS: using the $parse service
7:55
Joe Maddalone
Рет қаралды 12 М.
The CLEANEST authentication I've ever built with Angular
9:50
Joshua Morony
Рет қаралды 39 М.
AngularJS Routing
12:54
Joe Maddalone
Рет қаралды 39 М.
Writing Directives
54:25
Angular
Рет қаралды 202 М.
AngularJS DOM manipulation with jqLite
6:42
Joe Maddalone
Рет қаралды 13 М.
JavaScript Promises: Thinking Sync in an Async World
25:59
Kerrick Long
Рет қаралды 39 М.
Realtime "Eye Candy" with AngularJS
41:07
fitc
Рет қаралды 105 М.
Promises vs Observables - Angular (Tutorial #30)
15:44
Nisha Singla
Рет қаралды 94 М.