Q. Which Angular directive is used to conditionally include or exclude an element?
β
Correct Answer: (A)
*ngIf
Explanation: *ngIf adds or removes an element from the DOM based on a condition.