The problem I am having is the elements inside innerHTML
when viewed in chrome's Debug -> Elements tab constantly collapse and refresh.. Assumedly due to it being bound dynamically. Perhaps there is some way to stop, or pause the update / change detection?
I am using the following code.. Just need a fix for debugging purposes as I need to look at Element's Styles in Chrome Debug Console.
<mat-card-content>
<div [innerHTML]="getUnSanitizedLessonHTML()" class="mat-typography"></div>
</mat-card-content>
And
public getUnSanitizedLessonHTML() {
return this.sanitizer.bypassSecurityTrustHtml(this.lesson.HTML);
}
I have searched for a way to stop or pause JS in Chrome.. With no luck. And I took a stab at inserting a 10 sec pause into 'getUnSanitizedLessonHTML()' with no success.
Thanks..