How to get Mathjax working with Angular2?

前端 未结 4 860
春和景丽
春和景丽 2020-12-16 03:34

Has anyone gotten Mathjax working with Angular2 ?

Plunkr example created :- http://plnkr.co/edit/FLduwmtHfkCN5XPfzMsA?p=preview

From some Angular1 example

4条回答
  •  臣服心动
    2020-12-16 04:17

    Used Mathjax in my project in Angular 2 as follows:

    setTimeout(function () { MathJax.Hub.Queue(["Typeset", MathJax.Hub]);}, 5);

    as the queue runs asynchronously, the setTimeout ensures the math rendering process happens after a certain point of time.

提交回复
热议问题