Angular
Fundamentals of Angular - Displaying Data

Conditional Display with ngSwitch

Mute
Current Time 0:00
/
Duration Time 0:00
Loaded: 0%
Progress: 0%
Stream TypeLIVE
Remaining Time -0:00
 

In this video...

You will learn how to conditionally display elements using the ngSwitch directive.

The ngSwitch directive is not commonly used for a couple reasons:

  1. It's confusing to use and remember
  2. It's only useful in a small set of situations
  3. It requires a fairly strict HTML structure

Directives & Components Course

Fundamentals of Angular Directives

 

I finished! On to the next chapter