I just realized why these tricks are so great- Optional chaining and nullish coalescing are great features because one of the most frequent problems in web dev is when an API returns data in a shape the frontend doesn't know how to consume. Whenever JavaScript tries to evaluate a property on an object that is undefined, the whole application will crash. Instead this allows the frontend to gracefully provide a "nothing" value that still allows the app to run without show-stopping.
@doojonio
3 жыл бұрын
Awesome. Love Angular
@BBuckB
3 жыл бұрын
Nice! Thanks for sharing it.
@jeromemoulin5241
3 жыл бұрын
nice video !! more if u can ^^
@markthompson-g
3 жыл бұрын
Thanks, Jerome! Can and will make more :)
@artembalianytsia7842
2 жыл бұрын
Finally it's here. I was waiting so long for these features in Angular.
@_AleMaxi_
3 жыл бұрын
Awesome content!
@bizlme
3 жыл бұрын
Nice & simple . 👌🏾
@ricardojbertolin
3 жыл бұрын
Love your explanation, than you!
@GauravIshank
3 жыл бұрын
Very helpful, Thanks.
@moranmono
3 жыл бұрын
Great tip, thanks
@samithakulatilaka
Ай бұрын
Thank you! 🙂
@uaplatformacomua
2 жыл бұрын
Great! Thanks😀
@amlivinginhell
2 жыл бұрын
thank you bro
@SimpleSyntax
2 жыл бұрын
What to do when value is empty string? It handles only null and undefined..
@mquanit
3 жыл бұрын
Best
@Developerorium
3 жыл бұрын
Very cool 🙌
@seigneuranubis4312
2 жыл бұрын
Could you make videos for angular i18n, how to use npm link with several libraries (I m forced to restart the one with ng serve so that the browser get the changes...), web workers to increase service performance ?...
@muhammadporagsarkar7269
2 жыл бұрын
What "ng" stands for, by the way? If Angular, then how?
@phuc_cuhp
2 жыл бұрын
Which angular version I can use this?
@TMMBlackHawk
3 жыл бұрын
Although I upgraded successfully to 12, nullish coalescing doesn't work in the templates
@adityagautam1217
3 жыл бұрын
cant we achieve same thing with only optional chaining ?
@ytadi9229
3 жыл бұрын
It's a JS feature
@markthompson-g
3 жыл бұрын
Correct! I only mentioned TypeScript because that's what we're using in Angular :)
@danielkpunkt4151
3 жыл бұрын
first example might be wrong. in js null is an object so null !== undefined !
2 жыл бұрын
|| vs ??
@beautyofasia1938
3 жыл бұрын
saw black guy, quite rarely.
@nevzat.t
3 жыл бұрын
Noone is dancing in the video. Dislike!
@sravant
2 жыл бұрын
How does this operator help me in case of below situation?
Пікірлер: 29