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

Add the ability to get reference to component and props #54642

Open
1 of 2 tasks
zygarios opened this issue Feb 28, 2024 · 0 comments
Open
1 of 2 tasks

Add the ability to get reference to component and props #54642

zygarios opened this issue Feb 28, 2024 · 0 comments

Comments

@zygarios
Copy link

Is this a bug report or a feature request?

  • Bug Report
  • Feature Request

Please provide the steps to reproduce the issue [Bug Report only]

No response

Please provide the expected behavior vs the actual behavior you encountered [Bug Report only]

No response

Please provide a screenshot if possible [Bug Report only]

No response

Please provide the exception or error you saw [Bug Report only]

No response

Is this a browser-specific issue? If so, please specify the device, browser, and version. [Bug Report only]

No response

Description [Feature Request only]

image
It would be very helpful to have the ability to get a reference to the currently clicked component (1) in the tree using a button or icon. Similarly, for component reference properties (2). I know that it is currently possible to get a reference to a component by clicking on it and typing $ng0 in the console, but this is not intuitive and I have the impression that few people remember this option.

Proposed solution [Feature Request only]

I think it works very well and intuitively in the case of the Injector Tree, where there is an arrow icon that logs the service directly to the console. The same mechanism could work for the Components tab. Just add that icon next to element or prop. :)

image

Alternatives considered [Feature Request only]

No response

@ngbot ngbot bot added this to the needsTriage milestone Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants