Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var BookComponent = {
- data () {
- return {
- classCard: 'card'
- } },
- props: [ 'title', 'description', 'image' ],
- template : `
- <div :class="classCard">
- <h3>{{ title }}</h3>
- <img :src="'images/books/'+image" style="width:100%">
- <p v-html="description"></p>
- </div> `
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement