if in my html i have something like this (a blade.php in my case):
<body>
<div id="app" data-example="{{ $data }}"></div>
</body>
I can access those data like this in my vue components:
const appElement = document.getElementById('app');
const example = JSON.parse(appElement.dataset.example);