PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5

HeaderComponent call open modal

Closed this issue · 5 comments

try the code with the explain, in the momenent to trigger event click to launch the modal obtain the next warning

[Vue warn]: Error in event handler for "header-clicked": "TypeError: Cannot set property 'modalOpen' of undefined"
found in
---> at resources/assets/components/HeaderImage.vue

I try change or send the property but I dont understand with this issue, thank for help me

Hi!

I can help you fix this but I will need to see your code. Can you put it in a GitHub repo and provide the link?

hi @anthonygore this is the link to my code
https://github.com/alphyon/Full-Stack-Vue.js-2-and-Laravel-5
thanks for your help

I don't think you've made any commits to this code. You need to ensure that your changes are committed and pushed to the repo.

sorry man this is the link with mi code https://github.com/alphyon/vuebnbn

You have a typo in resources/views/app.blade.php. <modal-window ref="imagemodel"> should be <modal-window ref="imagemodal">