An alternative to debug your Angular Component.
There are two ways of using this.
- Paste this code in the browser console
- Use a Javascript Compresser to minify it into a one-liner. Paste the code into the URL-part of a bookmark (javascript:
code
)
- The first time you run the code, it'll ask you to enter the component name. Then it will save the component name in localStorage
- To update the component, you need to update the selector in localStorage
- type appComponent followed by the state you want to see / update.
- Click the update button that's injected into the DOM (top left)
Doesn't work with $0 or elements with more than one count. Can be implemented easiliy if needed.
I used https://javascriptcompressor.com/ to compress my javascript