I m having trouble with Inspector

I m using angular 7 and i have run into a problem with inspector specifically with the div in which it loads the inspector i m using ngIf to toggle the div which displays the inspector but it does not display the inspector
this is visual of the div


this is the div element

the html ngif code

the toggle component function

So do you actually get the two console.log messages? I’m guessing that the DIV does not yet have its desired size from page layout at the time it could be shown. Resizing Diagrams -- Northwoods Software