Skip to Content
실전 코드로 배우는 Vue.js
book

실전 코드로 배우는 Vue.js

by 마야 셰빈, 정병열
October 2024
Beginner to intermediate
452 pages
9h 28m
Korean
Hanbit Media, Inc.
Content preview from 실전 코드로 배우는 Vue.js
58
실전 코드로 배우는 Vue.js
}
}
}
이 수정자를 적용하면 입력 엘리먼트의 변경 사항이
onChange
이벤트를 발동시켰을 경우에
v
-
model
이 이를 추적하게 된다.
TIP
v
-
model
.
number
v
-
model
.
trim
수정자
v
-
model
에 바인딩할 데이터 모델이 숫자 타입일 경우
v
-
model
.
number
수정자를 이용해 입력값을 숫자로 변환
할 수 있다. 비슷한 방식으로, 문자열 데이터 모델 값에서 마지막 공백을 제거하려면
v
-
model
.
trim
을 사용하면
된다.
양방향 바인딩에 대한 설명은 이게 전부다. 다음으로 단방향 바인딩을 처리하는 일반적인 디
렉티브인
v
-
bind
를 살펴보자.
2.92.9
vv
--
bindbind
를 통한 반응형 데이터 바인딩 및 를 통한 반응형 데이터 바인딩 및
PropsProps
데이 데이
터 전달터 전달
앞선 내용에서
v
-
model
로 양방향 바인딩을 구현하고 이중 중괄호
{{}}
를 이용해 단방향 데
이터를 주입하는 방법을 배웠다. 그러나 속성값 또는
Vue
컴포넌트를
props
로 다른 엘리먼
트에 전달할 때는 단방향 데이터 바인딩인
v
-
bind
를 사용한다.
v
-
bind
:
문자로 축약할 수 있으며
Vue
애플리케이션에서 가장 많이 사용되는 디렉티브
다. 엘리먼트의 속성, 컴포넌트의
props
, 더 나아가 자바스크립트 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

실전 자바 소프트웨어 개발: 4가지 프로젝트로 배우는 최신 자바 개발 기법

실전 자바 소프트웨어 개발: 4가지 프로젝트로 배우는 최신 자바 개발 기법

우정은, 라울-게이브리얼 우르마, 리처드 워버턴
자바스크립트 + 리액트 디자인 패턴

자바스크립트 + 리액트 디자인 패턴

애디 오스마니(Addy Osmani)
실무로 통하는 타입스크립트

실무로 통하는 타입스크립트

슈테판 바움가르트너

Publisher Resources

ISBN: 9791169212991