difficulty | training | chapter | tags |
---|---|---|---|
3 |
true |
Chapter 1: Architecture, Signals, and State Management |
angular |
In this challenge, we want to change the MovieDetailsComponent
into a signal-based presentation component.
- Remove all dependency injection from
MovieDetailsComponent
. Instead, use anInputSignal
to receiveMovieDetails
. - Change your router config to add a resolver that fetches
MovieDetails
and passes the object as an input toMovieDetailsComponent
.💡 HINT: Your router dependency injection configuration will need to be updated to accommodate component input binding.
- Everything should work just like it did before.
- If you see the
data-test
attribute anywhere in the boilerplate don't remove it.
This is an example of what the functionality should look like for the completed exercise. If you’d like to mimic this style, feel free to do so, but it is not required.