2 years ago

Can't pass data from blade to vue through a prop

Posted 2 years ago by ivankayzer

I am trying to pass json to my vue component, but receive an error: Invalid prop: type check failed for prop "dictionary". Expected Array, got String.

This is my view

<cards :dictionary="{{ $dictionary->toJson() }}"></cards>

And this is my cards components

export default {
    props: {
        dictionary: {
            type: Array

All I found in Google is v-bind problem, but I do have v-bind.

Please sign in or create an account to participate in this conversation.