【发布时间】:2018-10-30 23:52:12
【问题描述】:
我正在尝试在我的 Angular 应用程序中使用 MathJax。我已经让它在 App 组件中工作,但是每当我将确切的代码移动到任何其他组件时,它只显示实际文本,而不是计算出来的 MathJax。
这是我使用的代码:
<div class="mathjax">\(\sqrt b\)</div>
我认为这可能与router-outlet 上的*ngIf 有关,我用它来等待来自firebase 的数据已加载。
<router-outlet *ngIf="this.coursesService.is_loading == false"></router-outlet>
*ngIf 是否会阻止 MathJax 正确加载?
【问题讨论】: