I have integrated MathJax into my application to render MathML. The code snippet below is used to ensure that the MathML is typeset properly:
$rootScope.$watch(function() {
MathJax.Hub.Queue(["Typeset", MathJax.Hub]);
return true;
});
However, I have encountered an issue where when I navigate away and then return to the MathML content, it seems to be rendered multiple times. It renders twice on the first return, three times on the second, and so on. Can anyone shed some light on what might be causing this behavior?