FrontendDeveloper.in

Angular question detail

What is the difference between ngIf and hidden property?

The main difference is that *ngIf will remove the element from the DOM, while [hidden] actually plays with the CSS style by setting display:none. Generally it is expensive to add and remove stuff from the DOM for frequent actions.

Back to all Angular questions
Get LinkedIn Premium at Rs 399