-
-
Notifications
You must be signed in to change notification settings - Fork 241
Error: Currently in page back navigation - component should be reattached instead of activated #1115
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
About the navigation, I'm navigating to the same component (CategoryListComponent)... when my service doesn't return child categories, I'm navigating to my other component (ProductListComponent) and removing the current route of the history at the same time, example:
On the other hand with the |
Hi @jdnichollsc, |
@tsonevn of course, let me create a sample project, thanks for your help! |
Hi @tsonevn, Let me know what you think, thanks for your help! 👍 |
@jdnichollsc I reviewed your project and saw that you had two Replace this: const routes: Routes = [
{
path: '', component: HomeComponent,
children: [
{
path: '',
component: CategoryListComponent
},
{
path: 'category-list',
component: CategoryListComponent
},
{
path: 'product-list',
component: ProductListComponent
}
]
}
]; With this. const routes: Routes = [
{
path: '',
children: [
{
path: '',
component: CategoryListComponent
},
{
path: 'category-list',
component: CategoryListComponent
},
{
path: 'product-list',
component: ProductListComponent
}
]
}
]; |
Ohh yes, @jogboms you're right! |
Also it works perfect using |
@jdnichollsc If you need both routes to share a particular template, why not have HomeComponent be a wrapper component and then use Content Projection ( |
Yeah, maybe the |
Yeah. The |
@jdnichollsc Did you found a solution at the end? Anyone? |
Hi @dvdbrk, for my case I need to try the following solution #1306 (comment) what are you trying to do? |
Did you find a solution to your issue ? |
I am also trying to find a solution for the same. |
Uh oh!
There was an error while loading. Please reload this page.
Hello guys,
I'm using the
page-router-outlet
component to have beautiful transitions of my child components, but I'm getting the following error after returning in the backward navigation and my app freezes (The tap system doesn't work and the navigation stops working):This is my routing configuration:
And the template of the Home component is:
Versions:
Let me know what you think, thanks in advance!
The text was updated successfully, but these errors were encountered: