Angular
Fundamentals of Angular - Displaying Data

Exercise: Conditional Display

Mute
Current Time 0:00
/
Duration Time 0:00
Loaded: 0%
Progress: 0%
Stream TypeLIVE
Remaining Time -0:00
 

In this exercise...

you will practice displaying elements conditionally using ngIf and ngSwitch.

Directions:

In the project linked below:

  1. If the rental list is empty, display a message that says "No Rentals" and don't show the clear button
  2. Show only 1 of the 3 icons, whichever is appropriate.

Click the following link to open up the exercise: https://stackblitz.com/fork/angular-sltqpg?file=src%2Fapp%2Frental-list%2Frental-list.component.html

 

I finished! On to the next chapter