Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //No App.vue:
- <h1 v-arthur:click="myfunction">Directives Exercise</h1>
- Vue.directive('arthur', {
- myfunction(){
- alert('minha diretiva personalizada v-on funcionou!');
- }
- });
- <script>
- export default {
- methods: {
- myfunction();
- }
- }
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement