-
-
Notifications
You must be signed in to change notification settings - Fork 241
Components inside a nested router-outlet are recreated when navigating #802
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@vakrilov Do you think it is possible to disable the |
@manojdcoder Good thinking! The closes thing is the |
@vakrilov Any idea about focusing on this issue during v3.2 release, along with other improvements on Angular layer. |
We still haven't done any planning for For |
@vakrilov any updates on this ? |
Is there anymore information on this issue? I am having the exact problem |
We have released |
The Scenario
We have a following app scenario:
<page-router-outlet>
<router-outlet>
. Navigating the nested router outlet is usually controlled withRadSideDrawer
.There are sample implementations described in #343 and in this gist by @NathanWalker
The Problem
When navigating form "main" page to another page(let's name it "detail") and then back again, the content of the nested
<router-outlet>
inside the main page is loaded after the page animation is finished:There are two different issues at hand:
<rotuer-outlet>
is re-created and not reused.<page-router-outlet>
implementation and happens in page.navigatedFrom event. Which means the "main" page is empty during the animation and the content is loaded after the navigations has finished.Additional Information
The reason why
page.navigatED From
event is used insteadpage.navigatING From
is that in IOS you can start a back navigation using swipe gesture, but cancel it in the middle:If we trigger the angular
back
navigation on thepage.naivgatING
event, angular will removethe components form the current page and instantiate the component on the page you are navigation to. However, if you then cancel the animation you will end up with a page that has been cleared and corrupted navigations stack.
The text was updated successfully, but these errors were encountered: