Skip to content
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(core): Make TranslatePipe and TranslateDirective standalone #1440

Closed
wants to merge 1 commit into from

Conversation

krtek4
Copy link

@krtek4 krtek4 commented Jul 14, 2023

Make the TranslatePipe and TranslateDirective standalone so only those can be imported in a standalone component instead of the whole module.

@tarp-jusf
Copy link

tarp-jusf commented Dec 21, 2023

Seeing as the Angular docs clearly state the following, there is no reason not to implement this change ASAP. It will literally not break anything.

You can import a standalone component (or directive, or pipe) just like you would an [NgModule](https://angular.io/api/core/NgModule) - using [NgModule.imports](https://angular.io/api/core/NgModule#imports):
Source: Standalone Components - Using standalone components in NgModule-based applications

@CodeAndWeb
Copy link
Member

Included in https://github.com/CodeAndWeb/ngx-translate.

@CodeAndWeb CodeAndWeb closed this Sep 23, 2024
@ocombe ocombe reopened this Sep 26, 2024
@CodeAndWeb
Copy link
Member

Fixed in @ngx-translate/core@16

@CodeAndWeb CodeAndWeb closed this Nov 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants