This commit is contained in:
Tyrel Souza 2018-04-13 13:32:48 -04:00
parent ffaec02119
commit 78e0c132e7
No known key found for this signature in database
GPG Key ID: 5A9394D4C30AEAC0
2 changed files with 4 additions and 1 deletions

3
app.js
View File

@ -2,7 +2,8 @@ var app = new Vue({
el: '#app', el: '#app',
data: { data: {
title: "Hello World", title: "Hello World",
link: "https://google.com" link: "https://google.com",
finishedLink: '<a href="http://google.com/">Google</a>'
}, },
methods: { methods: {
sayHello(){ sayHello(){

View File

@ -9,6 +9,8 @@
<div id='app'> <div id='app'>
<h1 v-once>{{title}}</h1> <h1 v-once>{{title}}</h1>
<p>{{ sayHello() }}</p> - <a v-bind:href="link">Google</a> <p>{{ sayHello() }}</p> - <a v-bind:href="link">Google</a>
<p v-html="finishedLink"></p>
</div> </div>
<script src="app.js" charset="utf-8"></script> <script src="app.js" charset="utf-8"></script>