You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Create method to reflect type of Directive and Pipe. #47919
Which @angular/* package(s) are relevant/related to the feature request?
No response
Description
Currently we have a method to reflect component type reflectComponentType. Unfortunately there is no way to reflect type of Directive and Pipe which might be very useful in case when we want to verify whether they are standalone. Now we are force using method from private api 'ɵisStandalone'.
Proposed solution
Create similar method for Pipes and Directives.
Alternatives considered
Create one common method which will verify whether something is standalone or not, eg exposing isStandalone
what's preventing from making isStandalone public ?
@JeanMeche we've discussed this question with the team and we are ok to expose the isStandalone function as a public API. If someone is interested in contributing the change to make that function public (the change would also require extra tests for this function) - please let us know via a comment in this thread. Thank you.
Activity
JeanMeche commentedon Nov 4, 2022
To the lovely folks working on Angular, what's preventing from making
isStandalonepublic ?Alternatively, I could submit a PR with an implementation of
reflectComponentTypeequivalents for Pipes/Directive if that were what is prefered.va-stefanek commentedon Nov 7, 2022
I am eager to help as well :)
AndrewKushnir commentedon Nov 18, 2022
@JeanMeche we've discussed this question with the team and we are ok to expose the
isStandalonefunction as a public API. If someone is interested in contributing the change to make that function public (the change would also require extra tests for this function) - please let us know via a comment in this thread. Thank you.JeanMeche commentedon Nov 18, 2022
@AndrewKushnir I'm on it !
25 remaining items
angular-automatic-lock-bot commentedon Jan 1, 2023
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.
feat(core): Make the `isStandalone()` function available in public API (