Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. <script>
  2. import ArrowSwitcher from '@/components/ui/ArrowSwitcher.vue'
  3.  
  4. export default {
  5. components: {
  6. ArrowSwitcher
  7. },
  8. data () {
  9. return {
  10. showContent: false
  11. }
  12. },
  13. methods: {
  14. switcher () {
  15. this.showContent = !this.showContent
  16. }
  17. }
  18. }
  19. </script>
  20.  
  21. <span class='targeting-global__name' @click='switcher'>
  22. Some Text
  23. <ArrowSwitcher :showContent='showContent'/>
  24. </span>
  25.  
  26. <span class='targeting-global__name'>
  27. Targeting Global
  28. <ArrowSwitcher :showContent='showContent' @click='switcher'/>
  29. </span>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement