Why does line 22 have `.then` instead of `.catch`? Wouldn't that `.then` be taking the return value of the first `.then` on line 18, which wouldn't return anything if `fetch` fails?
thanks. you added a link to the first part, but ended with a reference to the following part in the series, while this part has no link attached to the description.
It seems to be that in 'getMyData()' even if the first ajax call successed, the second ajax call still got triggered due to the reason it's a '.then().then()' not '.then().catch()'. Not sure it's a typo or not.
@@StephenFluin A re-edit with a two second text overlay saying "the second 'then' should've been a 'catch'" or something would save a lot of confusion. If wishes were horses. Awesome vids :-)
For goodness sake.... What's the point in typing the code live? Do you really want our ears hurt? Please, don't waste your (and our) time on typing code. What's the point? Just copy and paste blocks. Spend more time on explaining the concept or problem. If you want to type code any way keep your microphone separately from your keyboard. Don't place both devices on the same table. [x]
I get that the typing sounds might not be everyone's thing, but some people actually find it pretty satisfying and helpful to see the code being typed out, including me. I think it's cool that the creator is putting in the effort to make these videos, so maybe we can try to be a bit more positive with our feedback? A little appreciation goes a long way 😊
Why does line 22 have `.then` instead of `.catch`? Wouldn't that `.then` be taking the return value of the first `.then` on line 18, which wouldn't return anything if `fetch` fails?
So in this function there are two promises, one one for resolve and another for reject. 18 is resolve, 22 is for reject.
thanks.
you added a link to the first part,
but ended with a reference to the following part in the series, while this part has no link attached to the description.
It seems to be that in 'getMyData()' even if the first ajax call successed, the second ajax call still got triggered due to the reason it's a '.then().then()' not '.then().catch()'. Not sure it's a typo or not.
You're totally right, that should have been a catch!
yep think its a typo
Yes it should be catch. Otherwise 2nd promise will get executed
Did the second then() part really execute? I think only one then will work! I mean one then for one promise
@@StephenFluin A re-edit with a two second text overlay saying "the second 'then' should've been a 'catch'" or something would save a lot of confusion. If wishes were horses. Awesome vids :-)
Really loved your explanation. Would like to see a video about Observables in this section.
Pro tip: watch movies on Kaldrostream. I've been using it for watching loads of movies recently.
@Nova Silas yea, I've been watching on kaldroStream for since november myself :)
Good lecture my man, in the end, why the console.log("url success") was giving you the red line error?
Because tslint is configured to accept only single quotes for strings, and he used double quotes for console.log() on that line.
@@oktavic777 Thank you for take time and explain this to me. Appreciated.
Is it now calling Observables?
Where is the Part 3?
cool one !
maybe async generators in the next video GL
For goodness sake.... What's the point in typing the code live? Do you really want our ears hurt? Please, don't waste your (and our) time on typing code. What's the point? Just copy and paste blocks. Spend more time on explaining the concept or problem. If you want to type code any way keep your microphone separately from your keyboard. Don't place both devices on the same table. [x]
I get that the typing sounds might not be everyone's thing, but some people actually find it pretty satisfying and helpful to see the code being typed out, including me. I think it's cool that the creator is putting in the effort to make these videos, so maybe we can try to be a bit more positive with our feedback? A little appreciation goes a long way 😊