Conversation
…ue changed for v19
Co-authored-by: wawyed <wawyed@gmail.com>
|
Hi @wawyed, thanks for your time and the suggestions! The changes you requested are ready. |
|
great works guys. angular team should just ditch their router and use uirouter instead. |
|
@uirouter/angular-hybrid should also be updated? |
|
Hi @hheexx, I only managed to configured a hybrid application up to v9 of angular. At the time Angular's team was introducing Ivy and AOT compilation. I unsuccessfully tried to update that application to v10, instead I focus my attention on finishing migrating the remaining angularjs code. I encourage you to do the same and focus on finishing migrating, regardless, I'm very curious about your case and if you can build an example of an application with hybrid-support using v18, I can look into it and build an update for that package. |
|
Hmm we have https://github.com/ui-router/sample-app-angular-hybrid to test that hybrid works. |
|
@lindolo25 We have quite big app. We are in process of migrating but I think we need few years more. We have just one bug. When opening ng2 routes in new tab or c/p-ing them in address bar router redirects to home page. |
|
btw I see standalone support was added. |
|
@hheexx Are any of those routes lazy-loading their modules? My guess is yes for a large application. I will try discarding lazy-load first. If you have any route, not lazy-loaded, try to replicate the behavior. |
|
@hheexx, I'm building a specific property for Ng2StateDeclaration to load standalone components. something like: const route: Ng2StateDeclaration = {
name: "about",
url: "/about",
loadComponent: () => import("./about.component.ts").then(file => file.AboutComponent)
}checkout PR #995, still a draft, but I hope to have time to finish it this month. |
|
Hi @hheexx, I had a similar issue to that one myself, it was a few years ago and I never fully investigated it. My scenario was; I had a future state, lets call it I solved this problem by following the explanation in this comment: #384 (comment) At the time I had this issue I was also working with @uirouter/angular-hybrid, so it may be possible that it is a bug with this package. I tried yesterday to replicate my scenario using @uirouter/angular and it worked fine, here is the example https://stackblitz.com/edit/stackblitz-starters-5cfjp4ij. I'll try to put together and example for @uirouter/angular-hybrid and try to replicate the issue. I hope this helps! |
|
Thanks a lot. |

Hi @wawyed!
This PR implements support for angular v19. There are a few changes that I want to explain:
standalone: falsefor the components it creates.Here is the replated change for the sample-app-angular project ui-router/sample-app-angular#793
If you have any question please let me know!
Thanks in advance and happy new year !!!