Last active
November 30, 2016 14:50
-
-
Save pablohpsilva/19cbbf01f350f84d5c1dc158ba3cd59f to your computer and use it in GitHub Desktop.
InlinedProduct
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template lang="html"> | |
<div @click="clicked()">oi</div> | |
</template> | |
<script type="text/babel"> | |
import ProductItem from '../../shared-components/Item'; | |
export default { | |
extends: { // The Magic is happening right here | |
props: { | |
...ProductItem.props, | |
}, | |
data() { | |
return { | |
...ProductItem.data(), | |
}; | |
}, | |
computed: { | |
...ProductItem.computed, | |
}, | |
methods: { | |
...ProductItem.methods, | |
}, | |
}, | |
data() { | |
return { | |
teste: 1, | |
}; | |
}, | |
methods: { | |
clicked() { | |
console.log('clicked'); | |
}, | |
}, | |
mounted() { | |
}, | |
}; | |
</script> | |
<style lang="css"> | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment