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(devtools): implement inspect functionality for directives #47334
Conversation
227db72
to
b161d6b
Compare
...rojects/ng-devtools/src/lib/devtools-tabs/directive-explorer/directive-explorer.component.ts
Outdated
Show resolved
Hide resolved
Absolutely! Great meeting you as well. Helps to work in person, to get things moving quickly. |
|
@AleksanderBodurri I have the changes merged, I did a combination of using the github "Apply changes" and committing the other changes from my local. Hopefully the branch looks good. Let me know. |
0f0c0ec
to
f86b36d
Compare
|
@AleksanderBodurri , I accidentally did some merge that messed up this branch, can you help with fixing this? |
|
Backup your branch just in case git checkout -b view-source-directive-bkp
git checkout sk-view-source-directivesYou can reset to a branch with only your commits by: # reset softly to the commit right before 7f3180e and f86b36d
git reset --soft 0dc66120f053e610398cbdba61b6951ce77ee5b4
# stash the changes from 7f3180e and f86b36d
git stash
# reset hard to right before the merge
git reset --hard 3cf56797ca
# pop stash to bring back the changes from 7f3180e and f86b36d
git stash pop
# make new commit with the changes from 7f3180e and f86b36d
git add .
git commit
# update remote branch
git push -f |
f86b36d
to
0597b8f
Compare
|
Thank you for the detail steps, @AleksanderBodurri. The branch should be back in the original state. |
|
Awesome Run the following in your terminal and then change the |
Previously, you could inspect the source code of a component but not a directive. This commit adds functionality to inspect source code for directives as well. Now you will see the inspect icon on the header component of each directive on a selected element.
0597b8f
to
4dc1f60
Compare
|
@AleksanderBodurri . Done! |
|
This PR was merged into the repository by commit 32cad55. |


PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
Devtools Feature
What is the current behavior?
Previously, you could inspect the source code of a component but not a directive.
Issue Number: #45882
What is the new behavior?
This commit adds functionality to inspect source code for directives as well. Now you will see the inspect icon on the header component of each directive on a selected element.
Does this PR introduce a breaking change?