Comments (19)
@meeroslav
What about Angular 4.0.0 support?
from localize-router.
Resolved with Angular version 2.4.9
from localize-router.
The new version should be there in few days, I'm working on tests.
In the meantime, if you don't mind npm complaining, version 0.6.4 is fully functional with Angular Core 2.4.9 (and Angular Router 3.4.9).
from localize-router.
Version 0.7.0 supports Angular 4
from localize-router.
Can you provide more information:
- what route are you loading?
- how does your appRoutes look like?
- if possible provide link to your repo
Thanks
from localize-router.
@meeroslav It's part of enterprise project, so it's not available online.
My appRoutes
is simple:
export const appRoutes: Routes = [
{
path: '',
component: DashboardComponent
},
{
path: 'admin',
children: [
{
path: 'active-sessions',
component: AdminActiveSessionsComponent
}
]
}
];
- Load homepage
- Go to
admin/active-sessions
- Refresh the page (F5)
- Error
from localize-router.
Well, admin/active-sessions
should be invalid.
Once localize-router kicks in, proper URL should be e.g. en/admin/active-sessions
so the message you get is correct.
Do you navigate through the application to the given route or you modify the browser URL manually?
Former would be a bug in localize-router
while later would be expected behavior.
Please note that there is possibility to add flag to exclude certain routes from the localization process, but it's not yet implemented.
from localize-router.
@meeroslav Sure, it's en/admin/active-sessions
. I skipped this for clarity.
I navigate through the application. I just refresh the page by pressing F5.
from localize-router.
@mrzepinski This would notmaly happen if you would be using lazy loaded routes (#3). If this is not the case, then I will investigate it as soon as possible.
from localize-router.
@meeroslav It's not this case. I'm not using lazy loaded routes.
from localize-router.
This is caused by router version 3.4.8
. Seems that navigation kicks in before APP_INITIALIZER
finishes.
from localize-router.
Yeah, looked into the changes (angular/angular@2.4.7...2.4.8).
Looks like the process changed. They added a LOCATION_INITIALIZED
which might help
from localize-router.
This will break the backwards compatibility unfortunately, not to mention 4.x.x versions.
I need to investigate more to find proper solution.
from localize-router.
Issue mentioned in angular/angular#14615
from localize-router.
Workaround for version 2.4.8. can be found here: angular/angular#14588.
Proper solution will be done soon.
from localize-router.
Any update on this?
from localize-router.
Nice.
Any plans to support the new process that is used in Angular 4? There will apparently be a legacy option that makes it work like in 2.x but you can't use that with Universal.
from localize-router.
@meeroslav
When are we going to have a new version supporting Angular 2.4.9?
from localize-router.
On it. Sorry for waiting.
from localize-router.
Related Issues (20)
- localize-router not working as expected with Angular Universal: server-side rendering HOT 6
- Function traverseSnapshot not properly assembling the new translated route. HOT 11
- Localize router unable to pass data params on an empty path HOT 2
- Out of sync localize pipe HOT 1
- changeLanguage does not work for route with parameters HOT 6
- After language is switch, back button redirect into 404
- InitialNavigation enabled crashes Routing HOT 7
- Lazy loaded component is not bootstrapping HOT 4
- can't trigger window.load
- Angular 8 + IVy support HOT 1
- Can't make it, need tutorial. HOT 1
- Angular recognize only the default lang in SSR. HOT 4
- Angular 8 support HOT 6
- Extra slash translating root route
- LazyLoad Child Componenter onPage Refresh re-directs:Home Page HOT 1
- Unhandled promise rejection HOT 6
- Custom Cookies expiration
- Children routes issue lazy load module HOT 5
- Problem with Initial Navigation in RouterModule HOT 4
- LocalizeRouterModule.forRoot returns a ModuleWithProviders type without a generic type argument HOT 20
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from localize-router.