4 ms·
Just ship https://github.com/NeilFraser/JS-Interpreter https://github.com/NeilFraser/JS-Interpreter and you’re good to go! /s
by btown 1y ago
Just ship https://github.com/NeilFraser/JS-Interpreter https://github.com/NeilFraser/JS-Interpreter and you’re good to go! /s
- btown 1y agoAs a follow-up: Angular actually did this! https://docs.angularjs.org/guide/expression https://docs.angularjs.org/guide/expression > AngularJS does not use JavaScript's eval() to evaluate expressions. Instead AngularJS's $parse service processes these expressions.
- cluckindan 1y agoNote that those are the AngularJS aka ”Angular 1” docs. For Angular as in ”Angular 2” docs, see https://angular.dev/guide/templates/expression-syntax https://angular.dev/guide/templates/expression-syntax
- cluckindan 1y agoLooks like they actually went this route, but implemented it from scratch.