File tree Expand file tree Collapse file tree 2 files changed +30
-26
lines changed Expand file tree Collapse file tree 2 files changed +30
-26
lines changed Original file line number Diff line number Diff line change 9
9
<!-- Firebase -->
10
10
< script src ="https://cdn.firebase.com/js/client/2.4.2/firebase.js "> </ script >
11
11
<!-- VueFire -->
12
- < script src ="https://cdn.jsdelivr.net/vuefire/1.0.1 /vuefire.min.js "> </ script >
12
+ < script src ="https://cdn.jsdelivr.net/vuefire/1.2.0 /vuefire.min.js "> </ script >
13
13
</ head >
14
14
< body >
15
15
< div id ="app ">
16
16
< ul >
17
- < li class ="user " v-for ="user in users " transition >
18
- < span > {{user.name}} - {{user.email}}</ span >
19
- < button v-on:click ="removeUser(user) "> X</ button >
20
- </ li >
17
+ < transition v-for ="user in users " :key ="user['.key'] ">
18
+ < li class ="user ">
19
+ < span > {{user.name}} - {{user.email}}</ span >
20
+ < button v-on:click ="removeUser(user) "> X</ button >
21
+ </ li >
22
+ </ transition >
21
23
</ ul >
22
24
< form id ="form " v-on:submit.prevent ="addUser ">
23
25
< input v-model ="newUser.name ">
Original file line number Diff line number Diff line change 9
9
< body >
10
10
<!-- template for the modal component -->
11
11
< script type ="text/x-template " id ="modal-template ">
12
- < div class = "modal-mask" transition = "modal" >
13
- < div class = "modal-wrapper" >
14
- < div class = "modal-container" >
12
+ < transition name = "modal" >
13
+ < div class = "modal-mask" >
14
+ < div class = "modal-wrapper" >
15
+ < div class = "modal-container" >
15
16
16
- < div class = "modal-header" >
17
- < slot name = "header" >
18
- default header
19
- </ slot >
20
- </ div >
17
+ < div class = "modal-header" >
18
+ < slot name = "header" >
19
+ default header
20
+ </ slot >
21
+ </ div >
21
22
22
- < div class = "modal-body" >
23
- < slot name = "body" >
24
- default body
25
- </ slot >
26
- </ div >
23
+ < div class = "modal-body" >
24
+ < slot name = "body" >
25
+ default body
26
+ </ slot >
27
+ </ div >
27
28
28
- < div class = "modal-footer" >
29
- < slot name = "footer" >
30
- default footer
31
- < button class = "modal-default-button" @click = "$emit('close')" >
32
- OK
33
- </ button >
34
- </ slot >
29
+ < div class = "modal-footer" >
30
+ < slot name = "footer" >
31
+ default footer
32
+ < button class = "modal-default-button" @click = "$emit('close')" >
33
+ OK
34
+ </ button >
35
+ </ slot >
36
+ </ div >
35
37
</ div >
36
38
</ div >
37
39
</ div >
38
- </ div >
40
+ </ transition >
39
41
</ script >
40
42
41
43
<!-- app -->
You can’t perform that action at this time.
0 commit comments