Skip to content

Commit 582e273

Browse files
authored
Merge pull request vuejs#62 from Flancy/patch-3
Управление повторным использованием элементов
2 parents 7a08bd2 + f077fd3 commit 582e273

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
@@ -146,11 +146,11 @@ new Vue({
146146
<div>
147147
<template v-if="loginType === 'username'">
148148
<label>Имя пользователя</label>
149-
<input placeholder="Введите имя пользователя">
149+
<input placeholder="Введите имя пользователя" key="username-input">
150150
</template>
151151
<template v-else>
152152
<label>Email</label>
153-
<input placeholder="Введите адрес email">
153+
<input placeholder="Введите адрес email" key="email-input">
154154
</template>
155155
</div>
156156
<button @click="toggleLoginType">Переключить тип логина</button>

0 commit comments

Comments
 (0)