Use standalone for Angular
Is your feature request related to a problem? Please describe.
Angular team abandonned module-based aproach 2 years ago and you are still using modules...
I do not aunderstand why we shoud import entire module in each standalone components.
Describe the solution you'd like
Since standalone components are available, we should do it this way:
import { TranslatePipe } from '@tolgee/ngx'
@Component({
imports: [
TranslatePipe,
],
})
Why? Because of the bundle size and maintenance (IDE automatically removes unuses standalone imports but not modules) ...
Describe alternatives you've considered
None
Additional context
None
Thanks for the issue. We will try to address this fast.
Would you be open to join our community Slack so we can discuss it more deeply?
Unfortunately we don't have an Angular expert in team. I personally worked with Angular few years and I am the author of the Angular wrapper.
It would be awesome to get some prompt feedback before we release the new version so I am sure we don't miss anything.
https://tolg.ee/slack
This issue is stale because it has been open for 30 days with no activity.
Hi @JanCizmar, I would like to work on this issue. I have experience with Angular but not an full on expert. I can do this with your help. Also, the slack community link has expired. Thanks in advance.
Hi @JanCizmar, I would like to work on this issue. I have experience with Angular but not an full on expert. I can do this with your help. Also, the slack community link has expired. Thanks in advance.
It should be quite easy since there is a migration script https://angular.dev/reference/migrations/standalone
@ragul1697 Awesome! We will be happy for the PR.
I have fixed the slack link. Thanks for reporting. 🙏🏻