之前关于vue.js2.0父组件的一点学习,最近需要回顾,就顺便发到随笔上了
<body>
<div id=counter-event-example>
<p>{{ total }}</p>
<button-counter v-on:ee=incrementTotal></button-counter>
<button-counter v-on:ee=incrementTotal></button-counter>
</div>
[removed]
Vue.component('button-counter', {
template