v-model

했던것들/Vue.JS

v-once, v-model(양방향 바인딩)

HTML Events Event Practice Show Alert v-once는 초기값을 유지시켜줘요 : {{ text }} {{ text }} {{ confirmEnterText }} JavaScript const app = Vue.createApp({ data() { return { text: "initial value", enterText: "OutPut", confirmEnterText: "Not Confirmed" } }, methods: { btnAlert() { alert("hi") }, textInput(event) { this.text = event.target.value }, setEnterText(event) { this.enterText = event.target.value }, ..

2DC
'v-model' 태그의 글 목록