The ngSwitch Directive

In this lesson, we'll learn how the ngSwitch directive can help us conditionally render elements.

We'll cover the following...

The next directive we’ll be looking at is the ngSwitch directive. In JavaScript, there are two ways to run code conditionally. There’s if/else and switch/case. The ngSwitch directive allows you to use the switch/case syntax in your templates.

Updating the data

We’re going to update our data in the ...