Angular - Lifecycle Hooks
What will be logged to the console when this Angular component is destroyed?
export class LoggerComponent implements OnDestroy {
private subscription = observable$.subscribe();
ngOnDestroy() {
this.subscription.unsubscribe();
console.log('Cleanup done');
}
}