Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. <template>
  2. <div <!-- сюда нужно подставить атрибут test с переданным значением -->>
  3. <!-- вывод значения свойства test -->
  4. {{ test }}
  5. </div>
  6. </template>
  7. <script>
  8. export default {
  9. props: {
  10. type: {
  11. type: String,
  12. default: 0
  13. }
  14. }
  15. }
  16. </script>
  17.  
  18. <v-my-component test="ds"></v-my-component>
  19.  
  20. <template>
  21. <div <!-- сюда установится атрибут test с переданным значением -->>
  22. </div>
  23. </template>
  24. <script>
  25. export default {}
  26. </script>
  27.  
  28. <div test="ds">
  29. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement