How to use jqmath script in angular application? -


i'm developing quiz application want use jqmath script display maths equations. problem there syntax conflict whenever use curly braces other equation format working fine. have tried interpolation provider still same. how can solve this. please help!

uncaught error: template parse errors:unexpected character "eof" (do have unescaped "{" in template? use "{{ '{' }}") escape it.) (" invalid icu message. missing '}'. (" 

import {parsemath} 'jqmath';    export class a{        @viewchild('exp') exp:elementref;        func{      var  exp = this.exp.nativeelement;           parsemath(exp);    }      }
<div class="exp" #exp >$$x={-b±√{b^2-4ac}}/{2a}$$</div>

i haven't used angular, appears triggered double curly braces. avoid this, try putting space between 2 braces, i.e. { { {{, or } } }}. jqmath ignore space inside mathematics.


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

javascript - How to bind ViewModel Store to View? -

javascript - Solution fails to pass one test with large inputs? -