Pass single entry to vue component

Hello, I am trying to pass a single entry to a vue component.

I tried this so far:

<location-card :locations = "{{ locaties  }}{{ locaties | to_json | sanitize }}{{ /locaties }}"></location-card>


<location-card :locations = "{{ locaties  }}{{ locaties:index | to_json | sanitize }}{{ /locaties }}"></location-card>


{{locaties}}
    <location-card :locations="{{ locaties:index | to_json | sanitize }}"></location-card>
{{/locaties}}

But non of it seems to work..

Answered by Jorn Wildenbeest!
>>>>>>> Answered <<<<<<<
2 Replies
2 Followers