[Vuejs]-How to pass an object from Laravel to Vue without using props

0👍

Try the following Vue Component:

<template></template>

<script>
    export default {
        data: function() {
            return {
                user: window.User
            }
        },
        created(){
            console.log(this.user)

        },
    }
</script>

I could see the user data from the console.log in Vue component.

Leave a comment