标签为 [vue父子通信] 的文章

vue父子通信

首先在组件创建中创建子组件Todos.vue <template> <div class="hello"> <h1>todos show</h1> <ul class="list-group"> <li class="list-group-item" v-bind:class="{'complete':todo.completed}" v-for="(todo,index) in todos"> {{todo.title}} <button class="btn btn-warning pull-right" v-on:click="deleteTodo(index)"> delete ......
百度统计