Solution: The Built-in `NgSwitch` Directive
Let’s compare the task result with the expected result and explanation.
We'll cover the following...
We'll cover the following...
Solution
Here’s an example of what the solution for this task may look like:
<p>{{user.name}}</p>
Solution for the task
Explanation
This exercise doesn’t require much coding. We just need to consider all the cases below: