Course lesson
Dynamically Display a Task Status with ngSwitch
We'll use the ngSwitch directive to show a different badge next to the task depending on the status of the task. Then for each status we need to handle we'll add a ngSwitchCase that matches that status.
- Duration
- 1 min
- Access
- Included
- Transcript
- Retained from source evidence
We'll use the ngSwitch directive to show a different badge next to the task depending on the status of the task. Then for each status we need to handle we'll add a *ngSwitchCase that matches that status.