MadMaks
5 months ago
56
2
Vue

Change data from another Vue Element

Posted 5 months ago by MadMaks

How can i change this show data to true if i hit the destroy mehtod of the second element??

<script>
        new Vue({
            el: '#flashMessage',

            data: {
                show: false
            }
        });

    @if($thread->hasReplies())
       new Vue({
            el: '#dropdown-vue',

           methods: {
                destroy() {
                    axios.delete('/replies/{{$reply->id}}/delete');
                }
               }

       });

Please sign in or create an account to participate in this conversation.