Skip to content

Commit dda205e

Browse files
ramammurshalcexbrayat
authored andcommitted
docs: fix missing data at passing data section essentials guide
1 parent 2d4d468 commit dda205e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/guide/essentials/passing-data.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ const Password = {
4444
type: Number
4545
}
4646
},
47+
data() {
48+
return {
49+
password: ''
50+
}
51+
},
4752
computed: {
4853
error() {
4954
if (this.password.length < this.minLength) {
@@ -86,7 +91,6 @@ Sometimes you may need to write a test for a side effect of a prop changing. Thi
8691
</template>
8792
8893
<script>
89-
9094
export default {
9195
props: {
9296
show: {

0 commit comments

Comments
 (0)