Solution: Show and Hide with Alternative Templates

Here’s the solution to the task implementing a custom NgIf directive with the expected result and explanation.

We'll cover the following


The following is an implemented solution to the given task. We can confirm our result below:

Get hands-on with 1200+ tech skills courses.