Refresh MathJax after loading new view in Angularjs

Viewed 1235

I have more or less simple html-pages with mathematical formulas which are rendered by MathJax. I am building now a new system using AngularJS, starting from the angular-seed. All individual html-files are included as partials. As expected, MathJax renders correctly only if I refresh the page, when I load it trough the framework, the Math-Expressions are not rendered.

I have to run this function somewhere:

MathJax.Hub.Queue(["Typeset",MathJax.Hub]);

It should run after each load of a partial to render the formulas correctly. How can I do this?

M

2 Answers
Related