Replies: 2 comments
-
It should be the same as you had in the Luma-based script. If it's a widget - |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thank you for your reply. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
How can I pass variables from a template to an external script? The script is registered in referenceBlock breeze.js in breeze_default.xml.
The component is initialised via text/x-magento-init script like this:
<script type="text/x-magento-init"> { "*": { "FME_GiftWrapper/js/modal": { "symbol": "<?= $escaper->escapeJs($block->getCurrentCurrencySymbol()) ?>" } } } </script>
How can I use the value for the 'symbol' variable in my js-file?
Thanks in advance, Tom
Beta Was this translation helpful? Give feedback.
All reactions