title: Angular *ngIf memory usage
body: <p>Is my observation correct that even though *ngIf host element is not in the DOM it is in the memory/heap.
  So it is creating the host element but do not attach it to the DOM.</p>
  
  <p>I am on it because I have a huge list. Inside each list element are some *ngIfs. I see a lot of detached nodes and memory usage. When I remove not used *ngIfs then my memory and detached nodes counter is much smaller.</p>
  
  <p>If it like that what is the best way to handle it?
  I need to decide during the run time if the element will have input, text, time-picker field etc.</p>
  
  <p>Thanks.</p>
  
  <p>As a soulution, if someone has same problem:
  <a href="https://github.com/angular/angular/issues/27263#issuecomment-531462901" rel="nofollow noreferrer">GitHub- ngIf keeps node in memory</a></p>