Hi all,
Now I am trying to add @click event on the button.
I red framework7-documentation and tried but It didn’t work…
I made new ‘cart.html’ page and add @click event into the button by writing this code:
and add script:
But there is no console.log displayed when clicking button
Thank you and have a good day
JuanR
January 26, 2021, 4:51am
2
Instead, you could try removing ‘: function(e)’:
onClick(){
console.log('Clicked');
},
That should work, I get something like this, (no Vue, React):
methods: {
updateCart(){
var self = this;
...
},
},
1 Like
thanks JuanR
It works on initial page (index.html) but new problem occurs, if i visit other pages and go back to initial page (index.html), it is not working again
Why does this problem occur