vue.jsvue-devtools

How to get the event info in Vue.js?


I'm trying to use Vue Devtools to debug my App and I was wondering how to retrieve the info I see after an event.

   <l-marker v-for="marker in markers" 
     :lat-lng="marker.position"
     :key="marker.id" 
     :draggable=true 
     @dragend="dragend">
  </l-marker>

My event is @dragend="dragend",How can I get the lat and lng values?

enter image description here

Edit: Is this correct?

 dragend: function(event){

            console.log(event.target._latlng);
 }

Solution

  • if you edit your attribute in

    :lat-lng.sync="marker.position" 
    

    you will have the position always updated within the property marker.position, without using @dragend event