export default {
computed: {
last: function () {
return [ ...this.items ].reverse().slice(0, 5)
},
old: function () {
return [ ...this.items ].reverse().slice(5)
}
},
data: function () {
return {
items: [
{
id: 18,
},
{
id: 17,
},
{
id: 1,
},
...
import awardsMixin from '@/plugins/mixins/non-global/items';
export default {
name: "AwardsSection",
mixin: [awardsMixin],
mounted() {
console.log(this.last)
}