Great article, always a pleasure to read you!
Kevin MATHY
1

Hey, I tested it now like this:

@Directive({
selector: '[test]'
})
@AutoUnsubscribe()
export class TestDirective {
interval;
constructor() {
this.interval = Observable.interval(1000).subscribe(console.log);
}

ngOnDestroy() {
console.log("destroy");
}

}

And it works fine. Maybe you are using AOT?

Show your support

Clapping shows how much you appreciated Netanel Basal’s story.