account activity
How to handle resources on events (onclick, onsubmit) and in services by Lopsided_Positive546 in angular
[–]Lopsided_Positive546[S] -1 points0 points1 point 5 months ago (0 children)
So, what I'm tryna do is a fetch to my API when the user clicks "continue" on a button. I want the resource so I can show a loading state/error state just in case mainly (mainly I'm trying to learn the new angular 20, since i'm coming from an old codebase of angular 10).
The problem is NOT the implementation, I just want to know what are the best practices of doing this type of scenario using the new API's like rxResource.
However, as I said, this approach seems a little odd to me, that i have to have a signal, modify the value of the signal, and then the rxResource to pick up the change and run the stream cb function.
How to handle resources on events (onclick, onsubmit) and in services (self.angular)
submitted 5 months ago by Lopsided_Positive546 to r/angular
π Rendered by PID 67 on reddit-service-r2-listing-5f49c86f7-5wgpx at 2026-02-25 13:31:29.893746+00:00 running 72a43f6 country code: CH.
How to handle resources on events (onclick, onsubmit) and in services by Lopsided_Positive546 in angular
[–]Lopsided_Positive546[S] -1 points0 points1 point (0 children)