vugu / vugu

Vugu: A modern UI library for Go+WebAssembly (experimental)
https://www.vugu.org
MIT License
4.8k stars 175 forks source link

Vugu (Go) framework: @click event is not working #215

Closed VanCoppenolleWout closed 2 years ago

VanCoppenolleWout commented 2 years ago

This is an example as shown in the Vugu docs, yet it doesn't seem to work. https://www.vugu.org/doc/dom-events

github is not recognizing my code so here's a screenshot -> https://ibb.co/jHXcL34

andrewarrow commented 2 years ago

what do you see on the screen when this code runs? Can I see a screenshot of the javascript console in the browser too?

VanCoppenolleWout commented 2 years ago

what do you see on the screen when this code runs? Can I see a screenshot of the javascript console in the browser too?

Hi Andrew, when i run that code in a new and fresh project it works. Just not in mine. I can't seem to figure out what goes wrong. screenshot -> https://ibb.co/K9qSngP

my project: https://github.com/VanCoppenolleWout/VuguMovies/tree/develop

andrewarrow commented 2 years ago

oh try starting with the working example of https://github.com/vugu/vugu/issues/216 "taco-store". Use it's file structure and change it step by step to your site vs. trying to start a whole complex site from the ground up. You can see my example of that at https://github.com/andrewarrow/noegotribes where I just changed around the ui/pages/index.vugu and ui/comps/top-nav.vugu over to my content.