I want to pass an object as a property to my custom element. Passing this object as an attribute does not work not even after stringifying it. is there a way to do something like this:
let data = [
{ name: "Peter", expand: false },
{ name: "Max", expand: false },
{ name: "Lucy", expand: true }
];
<my-dropdown-list data="${data}"></my-dropdown-list>
data is treated as attribute in my component js file. How do i pass data as a property in to my component?