안녕하세요? 수업 정말 잘 듣고 있습니다.
수업을 들으면서 프로젝트를 진행하다가 궁금한 점이 있습니다.
emit으로 변수를 보낼 때, 여러개 변수는 어떻게 보내나요?
this.emitter.emit("category_code1", event.target.value, document.getElementById('select_maker').value);
이렇게 보내고
this.emitter.on("category_code1", (code, maker) =>{
//console.log(this.branchcode);
console.log(maker);
}
이렇게 받았는데 code는 제 값이 나오는데
maker를 찍으면 undefined라고 나오네요.
도움 부탁드립니다.
감사합니다.