I think the idea marked as the “solution” is crazy. A better way to do this is from the app component, as described here.
The reason you are still seeing the tabs is because you are calling setRoot
on a navigation stack that is still within the confines of the tabs-hosting page. Doing it from the app component breaks out of this.