Can you explain me please what's the difference between observable.takeUntil and observable.pipe(takeUntil...?
Example:
this.api
.testMethod(
this.queryParam,
)
.takeUntil(this.destroy$)
.subscribe(
this.api
.testMethod(
this.queryParam,
)
.pipe(takeUntil(this.destroy$))
.subscribe(
When i write the first option, i'm seeing that i need import from 'rxjs/operators'...