0 votes
in Angular by
What is the difference between ngIf and hidden property in Angular JS?

1 Answer

0 votes
by

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.

...