Skip to content

Instantly share code, notes, and snippets.

@B3nnyL
Created August 9, 2018 09:07
Show Gist options
  • Save B3nnyL/2577add9d181af3dacb92f71064d7103 to your computer and use it in GitHub Desktop.
Save B3nnyL/2577add9d181af3dacb92f71064d7103 to your computer and use it in GitHub Desktop.
<template>
<div class="feature-grid">
<div class="container">
<div class="row">
<div class="col-md-6 col-sm-12 col-12" >
<feature-block :feature="feature" v-on:add-cents="onAddCent($event, feature)"></feature-block>
</div>
</div>
</div>
</div>
</template>
<script>
import sampleFeatureBlock from '@/components/Single/SampleFeatureBlock'
import featureBlock from '@/components/Single/FeatureBlock'
export default {
name: 'featureGrid',
components: {
sampleFeatureBlock,
featureBlock
},
data : function() {
return {
feature: {
cents: 0,
content: 'Allow designer to export assets',
contributor: '@_wlfp',
emailUrl: 'mailto:ciao@sylin.me'
}
}
},
methods: {
onAddCent: function (event, item){
item.cents += event
}
}
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment