lesson 18: raw HTML output

This commit is contained in:
Andreas Zweili 2021-01-18 16:32:58 +01:00
parent e594f717c5
commit c23b8a642d
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ const app = Vue.createApp({
data() {
return {
courseGoalA: "Finish the course and learn Vue!",
courseGoalB: "Master Vue and build amazing apps!",
courseGoalB: "<h2>Master Vue and build amazing apps!</h2>",
vueLink: "https://vuejs.org",
};
},

View File

@ -17,7 +17,7 @@
</header>
<section id="user-goal">
<h2>My Course Goal</h2>
<p>{{ outputGoal() }}</p>
<p v-html="outputGoal()"></p>
<p>Learn more <a v-bind:href="vueLink">about Vue</a>.</p>
</section>
</body>