v-html
This commit is contained in:
parent
ffaec02119
commit
78e0c132e7
3
app.js
3
app.js
|
@ -2,7 +2,8 @@ var app = new Vue({
|
|||
el: '#app',
|
||||
data: {
|
||||
title: "Hello World",
|
||||
link: "https://google.com"
|
||||
link: "https://google.com",
|
||||
finishedLink: '<a href="http://google.com/">Google</a>'
|
||||
},
|
||||
methods: {
|
||||
sayHello(){
|
||||
|
|
|
@ -9,6 +9,8 @@
|
|||
<div id='app'>
|
||||
<h1 v-once>{{title}}</h1>
|
||||
<p>{{ sayHello() }}</p> - <a v-bind:href="link">Google</a>
|
||||
|
||||
<p v-html="finishedLink"></p>
|
||||
</div>
|
||||
|
||||
<script src="app.js" charset="utf-8"></script>
|
||||
|
|
Loading…
Reference in New Issue
Block a user