Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
Tags
- Vue
- loguru
- svelte
- InteliJ
- npm
- Shell
- EUREKA
- fetch
- fastapi
- JUnit
- d3js
- Logging
- springboot
- Python
- react
- post
- vitejs
- style
- Vue3
- sveltekit
- nodejs
- vuex
- Test
- NextJS13
- gradle
- Java
- NextJS
- 오라클
- Spring
- ubuntu
Archives
- Today
- Total
양군의 행복한 이야기
vue3 v-if ref value is null 본문
v-if ref 사용시 초기 로딩이 되어 있지 않으면 ref값을 사용 할수 없다
<input v-if="true" type="text" ref="reft1"/>
<input v-if="false" type="text" ref="reft2"/>
const reft1 = ref{null)
const ref2 = ref(null)
reft1은 input 객체를 가지고 있다.
reft2는 null을 가지고 있다.
v-if 대신 v-show를 사용하여 처리 하였다.