-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
feat(button): make standalone #15464
feat(button): make standalone #15464
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
An fdescribe was added 4 days ago, and after removing it a huge amount of unit tests is failing 🧐 unrelated to the change... |
Hi, Thanks a lot for the effort and support, we'll review and test if it breaks anything during the build/deployment etc. It'll be merged in this or next week's milestone. |
Super awesome you're even taking the time to break out CommonModule's import into importing the separate directives for smaller bundles. 🙏 Excited for this, thanks! |
Hi @alexciesielski , I've reviewed the button, ripple, shared & autofocus. I guess other files are unrelated. Thanks a lot for the effort and support. Could you please remove unrelated files, rebase the master and update the PR so I can merge it safely? You can continue to make the rest of the components standalone. By doing so: Again, thanks a lot for the effort and support! We're waiting for the rest. |
Hey, I rebased the branch and removed the changes to the |
Hi, Yes, only the standalone related code. A contributor is currently working on tests. You can ignore them. |
The tests can't declare the Button component themselves because that will throw errors. Or do you expect the contributor to adjust that as well? Edit: ok, will ignore them and remove the changes |
You can fix import/export/declaration errors related to your update to make it work. It would great to add only standalone component transition + broken test cases related to this process |
Ok, that's what I've done ✅ all changes are related to standalone transition |
Shall we get this merged this week? I would like to start refactoring other components to standalone but obviously need these changes first, as the pTemplate directive is used in lots of places. |
Thank you very much for your contribution. We are currently preparing for PrimeNG v18 and will make some internal component changes. Could you continue these PRs after we release PrimeNG 18? If you like, you can create issues and submit your PRs, and we can review them all after we release v18. |
Tracked in #15465
Introduces the standalone API starting with the button component and directive.
Once given the green light by @cetincakiroglu I will go ahead and open subsequent PRs making more components and directives standalone.