How to pass object to components in marko?

155 Views Asked by At

Hello I am trying to call a component with an object as parameter but the component prints the object as string "[object Object]". In the docs it specify object as an attribute type: https://marko-v4.github.io/docs/marko-json/

<vid-meta title=`${someObj}`/>

Thank you.

1

There are 1 best solutions below

1
On

solved rather writing <vid-meta title="${someObj}"/> i wrote <vid-meta title=someObj />