[Vuejs]-Injecting data into <script>var t = {{{$data}}}</script> via server side rendering

0👍

use like this:

<script>
    window.data = <?=$data?>
</script>

in vue:

var data  = window.data

Leave a comment