๋ฐ์ํ
Delimiters [[ ]] ๋ก ๋ณ๊ฒฝํ๊ธฐ
delimiters: ['[[', ']]'] ๋ฃ์ด์ฃผ๊ณ
{{ }} ๋์ [[ ]] ๋ก message ์ถ๋ ฅ!
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<title>delimiters</title>
</head>
<body>
<div id="app">
<h1>[[ message ]]</h1>
</div>
<script src="https://cdn.jsdelivr.net/npm/vue"></script>
<script>
var app = new Vue({
delimiters: ['[[', ']]'],
el: '#app',
data: {
message: 'Hello Vue!'
}
})
</script>
</body>
</html>
https://vuejs.org/v2/api/#delimiters
https://kr.vuejs.org/v2/api/#delimiters
๋ฐ์ํ
'Web > Vue' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[Vue.js] CLI ์ค์นํ๊ธฐ (0) | 2020.12.14 |
---|---|
[Vue.js] Vuetify, v-data-table (0) | 2020.12.02 |
Vuetify, refs (0) | 2020.11.27 |
[Vue] Vuetify Quick Start (0) | 2020.07.14 |
[Vue] ์์ํ๊ธฐ! (0) | 2020.07.13 |