-
Notifications
You must be signed in to change notification settings - Fork 92
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
Children routes issue lazy load module #169
Comments
I've found a workaround, passing ROUTES.parentRoute.childRoute it works but not in all cases, for example in a route with params this is happening:
There's something that's not fully working here. |
@BruneXX Keep in mind this library (localize-router) doesn't currently support Angular 8. |
Hi @gilsdav yesterday I've found an issue where you've proposed that, I've tried and it looks the same for me, also I've tried in your demo and I can see no changes in the current behavior, am I doing something wrong? The syntax that I've tried, is exactly this: (that you proposed) So.. I've found other behaviors trying other things too, for example: (whatever be the language set) So.. I've tried with your project and I saw a similar behavior, but the difference it's that it just not translated the child. So, to summarize, the issues are:
|
PS: Also another thing that I'm wondering.. Is there a way to navigate to route in component? because using:
or any other navigate result in:
also, I've used:
With the same error. |
@BruneXX For the rest it's not possible to give you a diagnostic without seeing all your routes. |
I'm submitting a ... (check one with "x")
Description
I having an issue related to the child routes,
I've main module app-routing.module.ts importing the main routes like:
Then in the auth.routes.ts, I've the following:
then in auth.module.ts:
But trying to access to translated route, for example:
Instead of that I'm receiving the following error:
core.js:4002 ERROR Error: Uncaught (in promise): Error: Cannot match any routes. URL Segment: 'es/autenticacion/registro'
The weird thing is that, if in my main routes (app.routes.ts) that then is imported in app.module.ts add the following:
it works like a charm, so the issue is just when I trying to add children routes. And it's simply giving that error...
🌍 Your Environment
Angular Version: 8.2.5
Localize Router Version: 2.0.0
The text was updated successfully, but these errors were encountered: