I have MathJacks loaded and working when the text is put into a template. But I am retrieving a large body of text from the server. This text is in HTML as it is heavily parsed and setup on the server.
(FYI I'm using the sanitizer on the returned content, bypassSecurityTrustHtml. I have tried without sanitizing and get the same result.)
Using the inspector I can confirm the code is there in the DOM:
<mathjax [content]="$a = {\frac{v-u}{t}} $" class="box"></mathjax>
I have fed the equation text via both variable and static text in the template as a text and it works on initial load.
The only thing I can figure is that the component isn't being interpreted as its not native to the template and is injected after the server call resolves.
How can I run the initialisation or onchanged function for the components once they have been injected?
Thank you