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 |
Tags
- Ionic modal
- route
- 아이오닉 스크롤 이벤트
- formgroup
- 셀렉트박스 커스텀
- scroll
- flex-1
- 앵귤러 모달
- TAILWIND
- prisma
- Oracle LISTAGG 사용 예시
- ajax 사용 예시
- angular button
- angular animation
- angular route
- mysql if
- 앵귤러 애니메이션
- angular modal
- ApexChart
- 스크롤 이벤트 감지
- Router
- egov spring ajax 사용 예시
- 스크롤 이벤트
- modal
- 호버
- 검색
- 모달
- 옵저버블
- Angular Router
- summary
Archives
- Today
- Total
깜놀하는 해므찌로
vue.js watch 데이터 모니터링 본문
반응형
SMALL
<template>
<div>
<h1>Home {{ title1 }}</h1>
</div>
<input type="text" v-model="input1"> <!-- 양방향 입력 가능-->
<button type="button" @click="getData">get</button> <!-- onclick 과 같은 효과 (vue.js)-->
<button type="button" @click="setData">set</button>
</template>
<script>
export default{
data(){
return{
title1 : "제목1",
title2 : "제목2",
input1 : "input1",
}
},
watch : { // 모니터링
input1(){
console.log(intpu1);
}
},
method : { // 자바스크립트의 모든 함수는 이곳에 선언
getDate(){
alert(this.input1);
},
setDate(){
this.input1 = "set";
},
},
}
</script>
1. watch 모니터링 할 변수명과 동일한 메소드명으로 생성
반응형
LIST
'IT' 카테고리의 다른 글
Springboot 스프링 부트 static / templates 폴더 (0) | 2023.05.13 |
---|---|
Angular Ionic 스크롤 이벤트 감지 방법 간단 예시 (0) | 2023.05.13 |
nodeJs 서버 열기 기본 예시 / nodeJs express / nodeJs ejs (0) | 2023.05.12 |
Node.js nodemailer 노드js 메일 전송 기본 예시 (0) | 2023.05.11 |
Typesciprt 현재 지도 위치 좌표 가져오기 (0) | 2023.05.11 |