vue.js - Laravel 5.4 + vue2 click Event Handling not working -
i have problem event handling in vue2 laravel 5.4 - nothing happen when use click event on button. no error or else. my html (in fact header.blade.php ): <div id="example"> <button v-on:click="exclick">super btn</button> </div> my js ( app.js in resources/assets folder ) require('./bootstrap'); new vue({ el: '#example', methods: { exclick: function (event) { alert("log 1"); if (event) { alert("log 2"); } } } }); const app = new vue({ el: '#app' }); js compiled gulp please help!