title: Angular 9 observable unsubscribe using @ngneat/until-destroy npm package
body: <p>I am using <code>@ngneat/until-destroy</code> <a href="https://www.npmjs.com/package/@ngneat/until-destroy/v/7.1.5" rel="noreferrer">this</a> npm package to auto unsubscribe observables. I have used <code>checkProperties: true</code> to auto unsubscribe observables.</p>
  
  <p>But, I am not getting how to test it. Whether observable is getting unsubscribed or not?</p>
  
  <p>My question is simple. Does this code works or do I have to use pipe like this before subscription</p>
  
  <pre><code>.pipe(untilDestroyed(this))
  </code></pre>
  
  <p>Thank you in advance</p>
  
  <pre><code>import { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy';
  
  @UntilDestroy({ checkProperties: true })
  
  @Component({
    selector: 'app-view-all-purchase',
    templateUrl: './view-all-purchase.component.html',
    styleUrls: ['./view-all-purchase.component.scss']
  })
  
  export class ViewAllPurchaseComponent implements OnInit, OnDestroy  {
  
  
    ngOnInit() {
  
   this.subscibe1 =  this.vendorService.five_vendors().subscribe(data =&gt; {
      if(data){
        console.log(data)
         this.vendor_list = data
      }})
  
  }
  
  ngOnDestroy() {
  
   }
  
  }
  </code></pre>