4👍
✅
You can add @
before print message veriable
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.3.4/vue.js"></script>
<script>
$(document).ready(function () {
new Vue({
el: '#app',
data: {
message: 'hello from Vue.js 2.0'
}
})
});
</script>
<div id="app">
<p>@{{ message }}</p>
</div>
1👍
escape the code using @
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.3.4/vue.js"></script>
<script>
new Vue({
el: '#app',
data: {
message: 'hello from Vue.js 2.0'
}
})
</script>
<div id="app">
<p>@{{ message }}</p>
</div>
See Displaying Raw Text With Curly Braces section here
Source:stackexchange.com