vendredi 19 février 2021

Laravel and Vue: adding prop from blade seems to be incorrectly skipping

I have a blade file where I have a Vue component. I am passing in some data as props. I pass in a facebook-page-id if the user has one or else an empty string but my facebookPageId prop is being set to pusher-key="3443343434" for some reason. Is the value being escaped somehow that it is including the prop in its value?

blade file

<my-component
   facebook-page-id= 
   pusher-key= 
   others= "Foo"
>
</my-component>

MyComponent.vue*

props: {
   facebookPageId="pusher-key="3443343434"",
   pusherKey: undefined,
   others: "Foo"
}


from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2M7xXAN
via IFTTT

Aucun commentaire:

Enregistrer un commentaire