Please, explain in details like whats var q = $q.defer() means , and how its different from $http and benefits etc
@mohibwasay510210 жыл бұрын
Awesome Illustration. Thanks Joe.! Was seriously having trouble in getting into promises! :D
@JoeMaddalone11 жыл бұрын
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_lomba10 жыл бұрын
which plugin do you use for angular autocomplete?
@JoeMaddalone10 жыл бұрын
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_lomba10 жыл бұрын
Joe Maddalone I'll check them out, nice intro to promises. They don't look so scary now!
@SreekanthKarini8 жыл бұрын
Very clear explanation about what actually $q does, it's helped a lot. may i know is this synchronous calling?
@StevenBenjamin10 жыл бұрын
Thank you! - This is the best tutorial on promises yet!
@heymauriciosoares11 жыл бұрын
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!
@francescopiazza48824 жыл бұрын
I didn't catch what's good in Promises...
@miroslavmatovic8 жыл бұрын
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 ?
@eternoaprendiz17239 жыл бұрын
Excelent demostration, make me understand what more than 10 links can't explain me on letters thank you
@nemiltimbadia71349 жыл бұрын
Awesome...Couldn't get it from other sources...Super clear here....
@johnh758110 жыл бұрын
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.
@remariorichards82379 жыл бұрын
You seriously need to explain your stuff man, all u do is type .Really nothing else
@rajeshwarchinna8 жыл бұрын
it's like try catch error handling
@snopocatepetl9 жыл бұрын
good video, but a messy programming style, mixing colons and not.
@hiddenblade9997 жыл бұрын
I was so confused by $q until I watched this demo like 3 times. Thank you.
@BULLSHXTYT11 жыл бұрын
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!
@ktaakash7 жыл бұрын
OMG, why on earth are you in such a hurry?
@HindiSongsHITS10 жыл бұрын
Great video series on Angular.
@heymauriciosoares11 жыл бұрын
wow i guess you are right! I just keep learning with your tutorials hahaha Thanks Joe!
@ajaykoranne37359 жыл бұрын
Straightforward and simple to understand video. Very good!
@orz55166 жыл бұрын
angular.?
@amitavroydev9 жыл бұрын
Very helpful and nicely explained. Now finally I know $q and how defered works :) Thanks
@chetanpl7 жыл бұрын
Very very clearly my concept.
@SusanElliottSim9 жыл бұрын
Thanks for this. It helped me more than the web pages that I've been reading.
@christophermagana10176 жыл бұрын
Yeah i dont understand what you're doing. This should have already pretty much been typed out and you go through explaining it.
@davidgonzales-ec8bo10 жыл бұрын
perfect. Just helped me clarify my understanding of promises. best yet acutally.
@JoeMaddalone10 жыл бұрын
Really glad it helped! Thanks.
@TheKarantan9 жыл бұрын
Douglas wouldn't be happy to see all these missing semicolons :)
@DeusGladiorum7 жыл бұрын
Why do you sound like John Goodman?
@SuperYouVIN10 жыл бұрын
Thank you for this tutorial. A very good example. I could see the usefulness of promises
@ThijsErends8 жыл бұрын
Awesome explanation, Thank you for the effort you put in to your videos
@jcgofredo223910 жыл бұрын
Bookmarked* :)
@rohit-ld6fc8 жыл бұрын
a better example is what was needed..
@girishvarma88136 жыл бұрын
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-qd3oq7 жыл бұрын
i couldn't understand
@SaiPrakash169 жыл бұрын
Really helpful! good presentation..
@David-ol7zz10 жыл бұрын
I got it finally working. Thank you very much, very good video.
@raffaellafico76527 жыл бұрын
Thanks
@TheAlgerianDz10 жыл бұрын
Thank you !!
@Dev_Everything9 жыл бұрын
Great job sir!!!!. Thank you!
@kuraibankusu8 жыл бұрын
Thank you for this!
@TheAkhilchalla9 жыл бұрын
Awsome video helped me a lot
@louisik18 жыл бұрын
lost me at 4:30
@ktalovmorx83075 жыл бұрын
Hey hermano, soy un analfabeto...puedes explicar mejor, osea un ejemplo mas practico..? Para que haria tanto para tan poca cosa?
@aakashggujju4 жыл бұрын
Awesome 😊
@narasimharao15376 жыл бұрын
cool this helped me
@Ricardo8605br6 жыл бұрын
Muito legal!
@neerajchaudhary40797 жыл бұрын
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.
@kothuriraogopi85847 жыл бұрын
super
@dewiwilliams49709 жыл бұрын
Disappointing to see you are creating professional videos and your copy of Sublime is unregistered.
@roach_iam9 жыл бұрын
+Dewi Williams Why spend $50 when you can just use the unregistered version, which has all features for free?
@LO000L8 жыл бұрын
+Kyle Roach To support the developer of sublime? Lol.