[vue.js] 사용자 지정 디렉티브(custom directives)
디렉티브라 함은 v-시작하는 대표적으로 v-model, v-show 말합니다. 이 편리한 기능을 커스텀으로 만들어서 사용할 수 있습니다. 특정 기능을 directive로 구현할 수도 있고 component로도 구현할 수 있습니다. 2가지 옵션 중에 어떤 것을 선택해야 할지 의문이 들었는데 Vue.js 공식 사이트에서 그 차이점을 알 수 있었습니다. Directives vs Components Vue has a clearer separation between directives and components. Directives are meant to encapsulate DOM manipulations only, while components are self-contained units that have t..
개발 노트
2020. 11. 10. 11:27