Exercise: The Built-in `NgIf` Directive
Let’s practice working with the `NgIf` directive.
We'll cover the following
Now it’s time to practice using the NgIf
directive.
Objectives
The application provided should display a few users. However, there are some things we need to ensure:
- Only users that are marked “premium” should be visible.
- Display “Unknown” in place of any user that doesn’t have a name.
- Display the “Loading…” message for the first ten seconds while the first user’s data loads.
Task
Please write the code below:
Get hands-on with 1400+ tech skills courses.