Sha256: e6827be6dfb5abe1a25084eb6da27e7eabd7c31bb3cd7e5669dffd5a0a65074e
Contents?: true
Size: 832 Bytes
Versions: 4
Compression:
Stored size: 832 Bytes
Contents
<template> <div> </div> </template> <script> export default { name: '<%= component_name %>', components: {}, mixins: [], props: { /* property: { type: String|Number|Boolean|Array|Object|Date|Function|Symbol, default: null, required: false }, */ }, data() { return { // field: 'value' } }, computed: { // computed properties are cached based on their dependencies /* computedProperty() { return 'value' }, */ }, methods: { // Methods run whenever a re-render happens, their results aren't cached. /* onClick() { this.$emit('click-happened') }, */ }, mounted() { // Invoked when the component loads, good place to fetch data from the API }, } </script> <style lang="stylus" scoped> </style>
Version data entries
4 entries across 4 versions & 1 rubygems