Angular’s resource and rxResource APIs with Input Signals with dynamic params
Jan 26, 2025
Angular’s evolution with signals has transformed how developers handle reactivity and API calls. If you’ve been exploring Angular 19 or later, you’ll love the flexibility and power of resource
and rxResource
.
In my latest video, I take a deep dive into using these features to manage dynamic API calls effortlessly.
What’s Inside the Video?
This video builds on a parent-child component interaction scenario where the postId
is dynamically passed as an @Input()
from the parent to the child. I demonstrate:
- Traditional Approach: Using
@Input()
decorators and theHttpClient
for API calls. - Modern Solution: Transitioning to input signals for cleaner and more reactive data flow.
- Dynamic API Calls: Using Angular’s
resource
andrxResource
APIs with promises and Observables respectively.
Cheers!