Skip to content

Commit f1e6be2

Browse files
authored
Merge pull request vuejs#38 from kestiq/patch-2
Added 'key' attribute to code example
2 parents 82deb79 + 629a3db commit f1e6be2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/v2/guide/conditional.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,11 @@ new Vue({
131131
``` html
132132
<template v-if="loginType === 'username'">
133133
<label>Имя пользователя</label>
134-
<input placeholder="Введите имя пользователя">
134+
<input placeholder="Введите имя пользователя" key="username-input">
135135
</template>
136136
<template v-else>
137137
<label>Email</label>
138-
<input placeholder="Введите адрес email">
138+
<input placeholder="Введите адрес email" key="email-input">
139139
</template>
140140
```
141141

0 commit comments

Comments
 (0)