Vue js component in Block preview #1281
michaeljcoyne
started this conversation in
General
Replies: 2 comments 1 reply
-
Hi @michaeljcoyne, this should totally be possible in block previews. In this context, |
Beta Was this translation helpful? Give feedback.
1 reply
-
Oh it was working all along except it was browser cache. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi I am trying to get a vue component in the block preview.
I dont want a full compiled twill block handling the forms I just want to render it in the preveiw with props.
For some reason in the blocks blade file:
`
@php
$speakers = app()->make(\App\Repositories\SpeakerRepository::class)->speakerBlock($block->browserIds('speakers'));
@endphp
<example-component :speakers="{{json_encode($speakers)}}">
`
Will not work. Is this.
Is it not possible to do it this way?
Beta Was this translation helpful? Give feedback.
All reactions