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

Open
wants to merge 1 commit into
base: master
Choose a base branch
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

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.

None yet

3 participants