part of my .vue:
<script>
export default {
props: ['photog-Id', 'gal-Id', 'photo-Id'],
mounted() {
console.log('Component mounted.')
},
methods: {
setfavorite(){
axios.get('/' + this.photog-Id + '/' + this.gal-Id + '/' + this.photo-Id + '/like')
.then(response => {
alert(response.data);
});
}
}
}
</script>
my .blade:
<div>
<set-fav photog-Id="{{$gallery->user->phcode}}" gal-Id="{{$gallery->galcode}}" photo-Id="{{$photo->filename}}" ></set-fav>
</div>
for some reason only photog-Id value gets passed, while the other two are not being passed.. why?
also, when i compile css and js, do i have to upload only the compiled ones or also the uncompiled ones to my server?
Error compiling template: invalid expression: Invalid or unexpected token in 2AMJJK1 Raw expression: :photog-id="2AMJJK1"
:
orv-bind: