A previous solution for M2.0 points towardsusing data_for_js(), which has since been deprecated in favour of js_init_call() - but I don't see how to use that with AMD
What am I missing?
Edit: After re-reading js_call_amd() guide: "A preferred approach is to pass css selectors for DOM elements that contain data-attributes for any required data, or fetch data via ajax in the background."
- I guess I could dump JSON into a hidden element, load it and parse it - seems pretty clunky
- I don't want to fetch data via ajax in the background, as it will create more requests and slow the page load.