강의

멘토링

커뮤니티

Inflearn Community Q&A

No author

This post's author information has been deleted.

Vue.js Intermediate Course - Learn Vue.js, ES6, and Vuex by creating a web app

TodoInput component todo saving implementation

4:56 새로운 객체를 반환

Written on

·

209

1

판교님, 질문있습니다.

data는 function()에 다시 새 객체를 반환하는데, 

methods는 바로 객체를 열어서 addTodo: ... 로 작성하는 이유를 알 수 있을까요?

클로저es6vuexvuejsjavascript

Answer 1

0

captain님의 프로필 이미지
captain
Instructor

안녕하세요 태현님, 이건 뷰 내부적으로 정의된 규칙이라 별 다른 이유는 없습니다 :) 라이브러리가 그렇게 만들어져서 그래요 ㅎㅎ

No author

This post's author information has been deleted.

Ask a question