JavaScript Vuejs returns [object Object] from data attribute vuejs data return object,vuejs computed return object

v-bind:data-identity="person" coverts person to string hence you can't attach an object to dataset as any object.toString() method returns [Object object] and you are getting the same

try to attach any string like person.name and see if it is reflected in your dataset

https://jsfiddle.net/qthg4Lwm/

hope this will help :)

EDIT: All data attributes are string read this article

from above article

Each property is a string and can be read and written. In the above case setting article.dataset.columns = 5 would change that attribute to "5".

Answer:1

Supposing I have an HTML Table and each row has Some data, an Update and a Delete Button. I want, by clicking on the Update Button, to retrieve every data THIS SPECIFIC ROW has. I have searched for ...

Supposing I have an HTML Table and each row has Some data, an Update and a Delete Button. I want, by clicking on the Update Button, to retrieve every data THIS SPECIFIC ROW has. I have searched for ...

How can I detect when a Bootstrap affixed element has returned to its starting position and is no longer affixed?

How can I detect when a Bootstrap affixed element has returned to its starting position and is no longer affixed?

Am new to javascript and doing my student project. I have created a sample page where user enters the name of a place.. He can enter a maximum of 4 places.. I Just like to have a text of "Place A" on ...

Am new to javascript and doing my student project. I have created a sample page where user enters the name of a place.. He can enter a maximum of 4 places.. I Just like to have a text of "Place A" on ...

I am building a web application using ExtJS. In my web application, the users can upload photos to the server directory. In addition, I also save the file path to a database table along with the user ...

I am building a web application using ExtJS. In my web application, the users can upload photos to the server directory. In addition, I also save the file path to a database table along with the user ...