mirror of
https://github.com/vuejs/vue.git
synced 2024-11-21 20:28:54 +00:00
update firebase example to use transition-group
This commit is contained in:
parent
e8552e7ff6
commit
940ebf2709
@ -13,13 +13,11 @@
|
||||
</head>
|
||||
<body>
|
||||
<div id="app">
|
||||
<ul>
|
||||
<transition v-for="user in users" :key="user['.key']">
|
||||
<li class="user">
|
||||
<span>{{user.name}} - {{user.email}}</span>
|
||||
<button v-on:click="removeUser(user)">X</button>
|
||||
</li>
|
||||
</transition>
|
||||
<ul is="transition-group">
|
||||
<li v-for="user in users" class="user" :key="user['.key']">
|
||||
<span>{{user.name}} - {{user.email}}</span>
|
||||
<button v-on:click="removeUser(user)">X</button>
|
||||
</li>
|
||||
</ul>
|
||||
<form id="form" v-on:submit.prevent="addUser">
|
||||
<input v-model="newUser.name">
|
||||
|
Loading…
Reference in New Issue
Block a user