*ngIf is a structural directive that modifies the structure of the DOM.
It works similarly to the JavaScript if statement. It adds or removes elements depending on the condition. When the ngIf condition is true, the element is rendered, and when the condition is false, it is not rendered at all. It has an asterisk prefix like other structural directives.