How does one go about debugging the DOM as it renders? I searched around and couldn't find any clear answer. It's probably likely I'm just not searching on the right keywords... who knows.
For example, say you have an ng-repeat directive applied on a table row.
Lets say we have this in the template, which the directive uses:
<table class="table table-striped table-condensed">
<tr ng-repeat="myObject in myObjects">
<td>{{myObject.name}}</td>
<td>{{myObject.description}}</td>
</tr>
</table>
Then, within our directive, we set up a property of the scope, either in the link or within some controller:
link: function (scope, element, attrs) {
scope.myObjects= [{ name: 'foo', description: 'desc for foo' },
{ name: 'bar', description: 'desc for bar' },
{ name: 'baz', description: 'desc for baz' }];
...
This renders great. However how does one go about somehow being able to view the html as it gets rendered? Is there some way I could actually set some kind of breakpoint to look at the current iteration of what the "myObject" is (as well as all its properties I could access... such as "name" and "description") at each iteration?
Currently I'm using Visual Studio Code with chrome debugging tools, though this only works for the javascript.
Hopefully I'm asking this question correctly! If anyone could help me out I would greatly appreciate it. :)