@MonsterlessonsAcademy

🎁 Want to grow from Middle to Senior?
Grab the free Starter Kit β†’ https://monsterlessons-academy.com/newsletter_subscribers/senior_starter_kit?utm_source=youtube&utm_medium=pinned_comment

@starlite7249

0:10 Subscribe Instead of Streams
4:26 Unsubscribe
5:33 Not Enough TypeScript
6:47 God Object Modules
7:49 Performance: TrackBy

@d.bachmann6798

Have watched several videos with this Author (name?). This is something real high quality. I am an experienced programmer and have even worked with Angular for some time and still this was very much worth watching. He has a God given talent of making coding videos.
This series should have 1000s of likes.. really amazing well explained . Very well edited everything is not too long and not too short.. It is a real pleasure to watch and learn from. Also by following these videos you pick up good coding practices with an understanding of why!

@winnemucca-sk5392

After playing with Angular signals, resource api,  and the first value from it is jarring how much things have changed.

@Matrium0

About the first point: the use of streams and async-pipe is really nice - UNTIL you realize that there is a thing called "error handling"! It's save to save that you want some sort of error handling in every single async call - at the very least this will reset your "loading"-indicator (like a spinner), but it might also display proper messages to the user.

This is were async gets ugly - very badly so -  you need a second stream, operators to share the original subscription and so on. You CAN do it, but in the end it does get quite bloated. Please show the ugly parts as well when recomending async-pipes.

Other than that: nice video!

@yevhen3934

It's a good tips. Oleksandr, I have a question to you: why do we initialize our values ​​in the constructor and not in the lifecycle hook OnInit? Because ngOnInit was created just for this. Isn't it bad code style to push variable initialization into a constructor?

@anime_culture_mm

Thanks. These are the mistakes I've been doing for the last 4 months since when I started writing Angular code.

@mapiideal

For the second problem: you don't need unsubscribe subscription from http client requests. These are single subscription and are cleaned up by the http client itself.

@abhisheksaxena518

Thanks for pointing the common mistakes and giving detailed solutions for each of them, helped me a lot! Subscribed

@rajtilak029

Thanks, this video helped me understand the angular design pattern better.

@joeyvico

Using the async pipe method how would you handle errors? Maybe my question is too broad and requires its own tutorial which would be very welcome. Thanks for the video

@mikhailratner4649

Nice, a newly found Angular content creator 🀩 (or at least partly). Will sub an see if you'll continue putting out advanced Angular tutorials. Looking forward!

@shivajimore4269

Thanks for these helpful tips, what if I used track by index instead of creating function inside component?

@MrMaxxx45

I'm coming from a React background and now am starting to learn Angular and I most say these subscription feel unnecessary to use everywhere. They are very useful when data gets updated again and again like a stream. But when I just want to fetch a single value from the api.. why do I need to subscribe to it. A promise is all I need. I turned to using the firstvaluefrom from rxjs in the service and turning the requesting method in the component into a async method. Now I can utilize async/await and try catch blocks . I don't know if it's wrong, the reason "it is the angular way" is not really an answer. Angular has changed it ways allot with every update.

@Thon-Diego

cool video mate, i havent used the trackby function!

@azzounimourad7112

Thanks for your tips and advices , i really use those mistakes , i'm still beginer in using Angular , and for the first point if i use it as stream and call it in the constructor , and assume that i want to use the list of users in other functions in that component how do i manage to do it without subscribing to that observable or stream , thanks a lot , the other points are very helpfull

@CodingAbroad

I had to watch a crap Mano Mano ad to see this video but it was worth it!

@qwerty123246

Thanks a lot man, that's really helpful stuff

@TemporaryTemp-u4e

Another amazing video!! πŸ”₯πŸ”₯

@rkjessop

The accent makes understanding difficult.  The topic is important.  Plz consider keeping the video and re-recording the audio track.  I tried the CC feature, and it confirms the problem:  "rick cheers" within 30 secs of the start.