Here is code
<div *ngIf="active"><app-p-detail></app-p-detail></div>
Whenever I do active = false
and again true
. It reloads whole 'app-p-detail' component, means all services inside component, I do not want that. I just want to show the component data once load it completely and show/hide. Is this ngIf and component behavior normal or Am I doing something wrong? I am using Angular 11.