-
Notifications
You must be signed in to change notification settings - Fork 138
Extending lazy-load functionality to include loading standalone components for specific routes. #995
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
Conversation
d69484a
to
5ef4430
Compare
…d added the loadComponent property.
…t changes to angular framework.
…PI with newest angular API. inputs signals now work for view bound components.
7164daa
to
3aac13e
Compare
Hi @wawyed, this PR is ready for review! |
I can test if you releease as beta to npm |
amazing, nice work |
Has the PR for supporting lazy-loading of standalone components been merged yet? I'm on the latest version of UI-Router, but I don't see any functionality called loadComponent. When I try to use it, I get an error. X [ERROR] TS2552: Cannot find name 'loadComponent'. Did you mean 'BlogComponent'? [plugin angular-compiler]
|
If the MR is open it means it hasn't been merged 😅 |
This would be great to get going, hopefully can start to unlock faster initial load speeds for standalone projects |
Hi @wawyed, I hope you're doing well. I wanted to follow up on this changes, I understand your time for this project is limited, but wanted to check if there's any update. Thanks for your time! |
Will this be a 16.1/17.0 release released at this time or will this code be released together with support for Angular 20 in June/July? |
Hi @wawyed , thanks for the help with this PR. Was this change released to npm, the lastest version remains 16.0.0. |
Just released it @lindolo25 @Sabbacus as 16.1 |
I have updated our app today and no problems reported for now. |
I tried standalone in dev now. |
Hi, This is a work in progress that I will like to present to you. It covers 3 significant changes, most of them related to the lazy-load functionality.
loadNgModule
and the related functionality to stop using@deprecated
Angular APIs.loadComponent
, and related functionality to lazy-load standalone components.ui-view
component to replace@deprecated
Angular APIs. The APIs changes are significant as this update will make components rendered using ui-view work well with the newer input Signals.Please let me know any feedback regarding this changes,
Thanks you all.