UNPKG

themummy

Version:

UNSTABLE. codecoverage married with integration testing. currently a work in progress

29 lines (27 loc) 486 B
module.exports = function ({data, methods}) { var icons = [ 'male', 'female', 'menu', 'gps', '3-dots-loader', 'arrow-right', 'arrow-left' ] icons.forEach(function (icon) { Vue.component('icon-' + icon, { template: '#icon-' + icon, data: function () { return data } }) }) Vue.component('person', { template: '#person', props: ['person'], data: function () { return data }, methods }) }