SHARE
TWEET

Untitled

a guest Sep 19th, 2019 90 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <template>
  2.   ...
  3.   <my-button @[someEvent]="handleSomeEvent()"/>
  4.   ...
  5. </template>
  6.  
  7. <script>
  8.   ...
  9.   data(){
  10.     return{
  11.       ...
  12.       someEvent: someCondition ? "click" : "dblclick"
  13.     }
  14.   },
  15.  
  16.   methods:{
  17.     handleSomeEvent(){
  18.       // do something
  19.     }
  20.   }
  21.   ...
  22. </script>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top