What is the difference between *ngIf vs hidden?

Technology CommunityCategory: AngularWhat is the difference between *ngIf vs hidden?
VietMX Staff asked 3 years ago

*ngIf effectively removes its content from the DOM while [hidden] modifies the display property and only instructs the browser to not show the content but the DOM still contains it.