Advertisement
Guest User

Untitled

a guest
Aug 20th, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <template>
  2.   <div>  
  3.     <SearchEventComponent
  4.       :foundEvents="foundEvents"
  5.     />
  6.   </div>
  7. </template>
  8.  
  9. <script>
  10. import { mapGetters, mapActions } from 'vuex'
  11. import SearchEventComponent from '../components/Events/SearchEvent/SearchEventComponent'
  12.  
  13. export default {
  14.   components: {
  15.     SearchEventComponent
  16.   },
  17.   props: {
  18.     id: {
  19.       type: String,
  20.       default: ''
  21.     }
  22.   },
  23.   computed: {
  24.     ...mapGetters([
  25.       'foundEvents'
  26.     ])
  27.   },
  28.   methods: {
  29.     ...mapActions([
  30.       'searchEvent'
  31.     ])
  32.   },
  33.   mounted () {
  34.     this.searchEvent(this.id)
  35.   }
  36. }
  37. </script>
  38.  
  39. <style>
  40.  
  41. </style>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement