Exercise: The Built-in `NgSwitch` Directive

Let’s practice working with the `NgSwitch` directive.

We'll cover the following

Objectives

To test our knowledge about the NgSwitch, we’ll use the NgSwitch directive to display users just like the lesson before. This time, however, we’ll use the provided components below for different types of users:

  • For premium users, we’ll use <app-premium-user>.
  • For standard users, we’ll use <app-standard-user>.
  • For users with a missing type, we’ll use <app-unknown-user>.

Task

Please write the code below:

Get hands-on with 1200+ tech skills courses.