In this video we are going to discuss about the control flow in angular with *ngSwi tchstructural directive
and in the previous lecture we had discussed about the *ngIf and *ngFor structural Directive
What is Control Flow?
Control flow in Angular means controlling what gets rendered in your HTML template based on some logic — like conditions (if/else) or loops (for).
In Angular, we do this using structural directives.
Structural Directives in Angular
• Structural directives change the DOM layout by adding or removing elements.
• They are prefixed with *.
Main control flow directives:
1. *ngIf
2. *ngFor
3. ngSwitch
. *ngIf — Conditional Rendering
✅ Description
Use *ngSwitch when you want to show/render different content based on a single variable's value.
Download
0 formats
No download links available.
Learn Angular 19: *ngSwitch | Structural Directive in Angular with Real project Example #Episode 5 | NatokHD