Vue(2)
-
[Vue] ref
태그에 Ref 속성으로 문자열(위 예제에서는 inputName)로 값을 넣어 주면, 이후 script 태그에서 해당 태그에 접근을 할 수가 있다. this.$refs.inputName // 이처럼 input 태그에 접근을 할 수가 있다.
2022.08.31 -
[Error] error Component name "Home" should always be multi-word vue/multi-word-component-names
error Component name "Home" should always be multi-word vue/multi-word-component-names vue에서는 위와 같이 name의 값을 두 단어의 조합으로 해야 한다는 규칙(?)이 있다. 나는 이러한 필요성을 못 느껴서 이에 대한 설정을 OFF하기로 했다. 그래서, package.json에서 "vue/multi-word-component-names": 0 해당 설정값을 넣어 주고 다시 실행을 했더니, 정상적으로 에러 없이 실행이 됐다.
2022.08.28