[Vuejs]-Laravel Vue js : How can I update a component form Javascript like this:

0👍

if you need pass the prop_show_loading value from laravel to loading vue component.

you don’t use “:” in the head:

<loading prop_show_loading="show_loading"></loading>

and in the loading component use:

    export default {
        props: ['prop_show_loading'],
        ...

and than you can use this.prop_show_loading to get the value.

Leave a comment