angelorigo
3 years ago
88
3
Vue

how can i add Vue alert at Laravel submit form button ?

Posted 3 years ago by angelorigo

Hi

I just want to add : v-on:click="say('hi')" into a submit button using laravel blade forms : {!! Form::submit('Add', ['class' => 'btn btn-default']) !!}

Must be pretty easy but i can not find the right way , just get syntax errors until now.

new Vue({ el: '#example-2', methods: { say: function (msg) { alert(msg) } } })

Please sign in or create an account to participate in this conversation.