-
-
Notifications
You must be signed in to change notification settings - Fork 227
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
add standalone directive for new angular #145
Comments
#72 covers a discussion on this. The current project setup can not easily support |
I noticed that Angular support is no longer available. |
The directive is fairly simple; you can copy and maintain your version for most projects. I have made my library just for Angular because |
I’m happy to ship off angular support to another package like yours @ajitzero! I really don’t have enough experience with angular to have any recommendations for how to consolidate it here. That said, it seems totally wild that there isn’t a way to have a build system pack angular support into the How many standards does Angular have to break for that to be the case 😂? |
Yeah, it's unfortunate but necessary in "Angular-land" because Angular code must be compiled and exported into a specific format for usage as a library (not talking about transpilation). They're not plain exported Js/Ts classes/functions. This is my understanding of the root problem. I only know a little about this, and I leave all of the build system stuff on Nx (or Lerna or whatever works for you) for my own libraries. It allows me to target different frameworks as needed. Maintaining something for a single framework is hard enough, and here we're trying to do so for so many. In the long term, this repo can benefit from migrating the project structure to Nx, but that's such a significant, non-trivial change; I figured we're better off with a spin-off library dedicated to Angular. |
I have no plans or desire to migrate this to NX or Lerna — there’s nothing inherent in those systems that is needed here. Even if we went multi-package I would still just use small discrete custom build tooling — I greatly prefer to own the build process as we do on formkit/formkit.. I’ll need to look into what angular actually needs here, but I feel quite confident we can build a subpath with everything it needs. |
In that case, please look at ng-packagr, the primary dependency for building these libraries. Additional notes (from me making the wrapper library):
|
I had to create a standalone directive for new Angular to use it with standalone components.
It would be nice to have it build in.
I am happy to contribute and create a pull-request just to make my mark on the project :) love it :)
Or just do it yourself, I don't mind :) That is not that much work.
The text was updated successfully, but these errors were encountered: