rozman50

VUE quote project - QuoteGrid.vue

Jul 13th, 2018
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. <template>
  2. <div class="row">
  3. <app-quote v-for='(quote, index) in quotes' @click.native='deleteQuote(index)'>{{ quote }}</app-quote>
  4. </div>
  5. </template>
  6.  
  7. <script>
  8. import Quote from './Quote.vue';
  9.  
  10. export default {
  11. props: ['quotes'],
  12. components: {
  13. appQuote: Quote,
  14. },
  15. methods: {
  16. deleteQuote(index) {
  17. this.$emit('quoteDeleted', index);
  18. }
  19. }
  20. }
  21. </script>
  22.  
  23. <style>
  24.  
  25. </style>
Add Comment
Please, Sign In to add comment