issues
search
gumpcha
/
good-reads-clone
Nomad Coders Online Hackerthon 과제
https://hackathon.nomadcoders.co/
0
stars
0
forks
source link
separate message service
#18
Open
kisstest
opened
4 years ago
kisstest
commented
4 years ago
모든 메시지에 대한 처리를 하나의 모듈단위에서 해결
이슈
vue mixin
을 써서 모든 하위 컴포넌트에 메시지 전달 메소드를 구현하려 하였으나 하위 컴포넌트에서 해당 메서드를 호출할 경우
undefined
호출됨
mixin
은 공통된 기능을 필요로하는 각기 다른 컴포넌트에 넣어주기 위한 기능임
vue 공식문서에서는 전역메서드를 쓰기위한 방법으로 plugin을 추천
cream project에서와는 다르게 우리 프로젝트에서는
Vue
를 하위컴포넌트에서 인식하지 못함
파일내에 명시적으로 선언되지 않아서 eslint error가 발생하는듯함
이슈
vue mixin
을 써서 모든 하위 컴포넌트에 메시지 전달 메소드를 구현하려 하였으나 하위 컴포넌트에서 해당 메서드를 호출할 경우undefined
호출됨mixin
은 공통된 기능을 필요로하는 각기 다른 컴포넌트에 넣어주기 위한 기능임Vue
를 하위컴포넌트에서 인식하지 못함