import Vue from 'vue'
import store from './store'
new Vue({
el: '#productList',
store,
template: '<span> msg: {{msg}}</span>',
props: ['msg']
})
<div id="productList" msg="сообщение"></div>
import Vue from 'vue'
import store from './store'
Vue.component('productList', {
template: '<span> msg: {{msg}}</span>',
props: ['msg']
});
var app = new Vue({
el: '#app',
store,
})
<div id="app">
<product-list msg="message"></product-list>
</div>