JSFiddle - React, Tailwind, and code Playground
HTML
<body ng-app>
<div>
<label>Type formula:</label>
<input type="text" ng-model="formula" placeholder="=1+1">
<h1>result: {{$eval(formula.substring(1))}}</h1>
</div>
</body>
<body ng-app>
<div>
<label>Type formula:</label>
<input type="text" ng-model="formula" placeholder="=1+1">
<h1>result: {{$eval(formula.substring(1))}}</h1>
</div>
</body>