Skip to content

Commit

Permalink
[doc] ES6 Destructuring - 뷰에 적용하는 구조 분해 문법 문서 수정
Browse files Browse the repository at this point in the history
- 코드 들여쓰기
  • Loading branch information
padosum authored Sep 1, 2021
1 parent eea6aa3 commit f5a27ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/es6/destructuring.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export default {
},
submitForm() {
// 구조 분해 문법 미적용
this.savePost(this.id);
this.savePost(this.id);
// 구조 분해 문법 적용
const { id, savePost } = this;
Expand Down Expand Up @@ -199,4 +199,4 @@ export default {
<li v-for="{ title, author, id } in posts" :key="id">
{{ title }} - {{ author }}
</li>
```
```

0 comments on commit f5a27ea

Please sign in to comment.