Skip to content

Create method to reflect type of Directive and Pipe. #47919

Closed

Description

@va-stefanek

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

Activity

  1. added this to the needsTriage milestone on Oct 31, 2022
  2. JeanMeche commented on Nov 4, 2022

    @JeanMeche
    Member

    To the lovely folks working on Angular, what's preventing from making isStandalone public ?

    Alternatively, I could submit a PR with an implementation of reflectComponentType equivalents for Pipes/Directive if that were what is prefered.

  3. va-stefanek commented on Nov 7, 2022

    @va-stefanek
    ContributorAuthor

    I am eager to help as well :)

  4. added
    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
    on Nov 16, 2022
  5. modified the milestones: needsTriage, Backlog on Nov 16, 2022
  6. AndrewKushnir commented on Nov 18, 2022

    @AndrewKushnir
    Contributor

    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.

  7. added
    open for contributionsAn issue that is suitable for a community contributor (based on its complexity/scope).
    featureLabel used to distinguish feature request from other issues
    feature: in backlogFeature request for which voting has completed and is now in the backlog
    and removed
    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
    on Nov 18, 2022
  8. JeanMeche commented on Nov 18, 2022

    @JeanMeche
    Member

    @AndrewKushnir I'm on it !

  9. 25 remaining items

  10. angular-automatic-lock-bot commented on Jan 1, 2023

    @angular-automatic-lock-bot

    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.

  11. locked and limited conversation to collaborators on Jan 1, 2023
  12. added a commit that references this issue on Feb 1, 2023
    2ab3f46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: coreIssues related to the framework runtimefeatureLabel used to distinguish feature request from other issuesfeature: in backlogFeature request for which voting has completed and is now in the backlogopen for contributionsAn issue that is suitable for a community contributor (based on its complexity/scope).

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions