Debug Angular
Last updated
Was this helpful?
Last updated
Was this helpful?
A few debug tricks learned by the ways.
You can use Augury but some time a simple in screen debug is convenient.
You can do it thanks to the json pipe that transform json objects in string.
my object | json
It is convenient for forms where we want to see the consequence of your actions. And track the form state.
Using html PRE tag allow to display the json with line break.
Augury is a more complete debug utility for chrome. It can display the state of variable in each component.
It copies the result of JSON.stringify with the option to set correct indentation 2.
In chrome debugger go to sources tab and type CMD + P (same shortcut that in sublime text) it open a list of files
Use the feature with an android