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 -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -