title: What IS ng-component in Angular?
body: <p>There are two very similar named directives (or attributes) in angular</p>
  
  <p><strong><code>ng-component</code></strong> and <strong><a href="https://angular.io/guide/structural-directives#ng-container-to-the-rescue" rel="noreferrer"><code>ng-container</code></a></strong></p>
  
  <p>If you put <code>ng-component</code> instead of <code>ng-container</code> you'll get all kinds of weird behavior - such as automatic insertion of a <code>&lt;router-outlet&gt;</code>.</p>
  
  <p>I've often wondered is there actually a purpose for <code>ng-component</code> in user code. </p>
  
  <p>Is it a legacy thing? Is it internal only? Does it solve any problems?</p>