Angular Signals vs RxJS - Reuse It Effectively

preview_player
Показать описание
Here we compare Angular Signals vs RxJS to share data between components. Learn how to move Angular Signals in the service to reuse between components. We will leverage computed and readonly signals to achieve that.

TIMESTAMPS
0:00 Introduction
0:28 Our project
1:02 Using RxJS
5:40 Using Angular Signals

MOST POPULAR COURSES

FOLLOW ME

REFERENCES
Рекомендации по теме
Комментарии
Автор

Great Teacher, I have bought 4 courses and I am very much
satisfied. Thanks Sir!

Iamharshiv
Автор

Great video as always! Always right to the point! Thanks for all the great content!

chrisb
Автор

Please post the IDE tutorial what you using. Looks very cool and responsive

rajapattai
Автор

If you already know rxjs, is there a good reason to even bother with signals?
If someone knows neither rxjs or signals, surely they're better off learning rxjs as it is more powerful and can do more than signals?

tarquin
Автор

I still don't understand how you use this with getting values from repository via API?

anutaNYC
Автор

Nice content!
Could you please also explain why didnt you prefer returning the obs$ of users by using a getter fn?

Yarinmimon
Автор

Классное видео
Планируется курс по сигналам и NgRx?

tomozi
Автор

Would love to learn how to implement transactions into Angular application or a resource if anyone knows of one

michaelharrington
Автор

So in your course of ngrx we can follow the same approach to refactor it to signals?

mohamedal-qadeery
Автор

Can you elaborate why the getUsers method returns computed and not directly this.usersSig? Is it just because of read only or are there other reasons?

dk
Автор

hi your IDE setup for windows please. it looks so cool.

rajapattai
Автор

RxJs more poverful tool. Probably signals just ok for simple esolated services.

fredgad
Автор

I give angular 2 more years then it will began like angularjs

igorr
Автор

I bet RxJS will become optional, it;'s to heavy and very difficult to master it.

valikonen
Автор

Thanks for the tutorial. I have a question : in your AppComponent (minute 3:40), you are writing : users$ = this.usersService.getUsers() . Why do you initialize this property outside of ngOnInit method ? Is the constructor of a component executed before or after the initialization of the properties of the component, in the case these properties are initialized out of the constructor or ngOnInit or any other method ? I would suppose that the constructor is executed first, so the service is first injected to the component. And we can then initialize a property that uses this service : users$ = this.userService.get...=> it is outside of ngOnInit but the userService is not null anyway, as it was already injected in the constructor.

Georgii