Model component for Vue.js