| difficulty | 1 |
|---|---|
| training | true |
| chapter | Chapter 2: Angular Components |
| tags | angular |
In this challenge, let's create a movie item component that receives Movie information as an input.
- Open
src/movie-item/movie-item.component.ts - Add a required input of type
Movie(see sample movie provided insrc/app.component.ts) - Update the provided HTML template to render the movie:
- Title
- Release date (no formatting needed)
- Budget ($ {value} million - for instance: $ 50 million)
- Duration ({value} min - for instance: 152 min)
- Update
src/app.component.htmlto pass the samplemovieas an input - Ensure your component is displayed properly on the screen
💡 HINT: Review our self-study content if you get stuck at any step
- If you see the
data-testattribute anywhere in the boilerplate don't remove it. - Mini.css is preinstalled with the default config. It might be helpful for you, if you want to have some styles. (Not required)
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.
