title: Do you have to unsubscribe from a QueryList in a component?
body: <p>When using the <code>@ContentChildren</code> or <code>@ViewChildren</code> decorators to listen for changes to DOM elements. Do I have to unsubscribe from the <code>QueryList</code>?</p>
  
  <p>For example:</p>
  
  <pre><code>@Component({...})
  export class ParentComponent implements AfterContentInit {
      @ContentChildren(ChildComponent)
      public children: QueryList&lt;ChildComponent&gt;;
  
      public ngAfterContentInit(): void {
          this.children.changes.subscribe(() =&gt; ....);
      }
  }
  </code></pre>
  
  <p>Would the above be a problem?</p>
  
  <p><strong>Updated:</strong></p>
  
  <p>The reason I'm asking is that we don't have to unsubscribe to <code>@Output</code> decorators. These are automatically unsubscribed by the component when it is destroyed.</p>
  
  <p>I can not find any documentation which says this is the same for the <code>QueryList</code>.</p>