Avoid AsyncPipe?

The Ionic Angular lifecycle docs recommend using ionViewWillLeave for cleaning up observables.

ionViewWillLeave - Can be used for cleanup, like unsubscribing from observables. Since ngOnDestroy might not fire when you navigate from the current page, put your cleanup code here if you don’t want it active while the screen is not in view.

This seems contradictory to the Angular best practice of using the AsyncPipe in templates to handle the subscription logic of the observable. Is it recommended to avoid using AsyncPipe for Ionic apps, since it only unsubscribes when the component is destroyed?

I think the part I bolded is the key here. If you’re OK with the subscription being active even while the page is potentially not visible, feel free to use AsyncPipe or unsubscribe in ngOnDestroy.