Reputation: 6684
I am having an issue with navigation in my app. The page hierarchy works like so:
Top
Root
A standard flow of events would be:
push()
the ClientGenericPagepush()
the VisitComponent from a button on the CheckInPageThe issue arises when I attempt to pop()
from the VisitComponent. I would expect to end up at the CheckInPage but instead I end up at the HelloIonicPage (root component).
When I call this.navCtrl.getViews()
I see an array of 2 views: [CheckInPage, VisitComponent]
.
I am really at a loss as to why I would end up at the root after calling this.navCtrl.pop()
.
Upvotes: 1
Views: 41
Reputation: 6684
As it turns out, the ClientGenericPage header was displayed on top of the VisitComponent header, and thus clicking back was firing the event on the parent, not the child.
Upvotes: 1