Tuesday, January 2, 2018

2. Hello Vue World using v-text

The same output as in Example 1 can be created with v-text.


This is the file App.vue


<template>
  <h1 v-text="hello" id="app"></h1>
</template>

<script>
export default {
  data () {
    return {
      hello: 'Hello Vue World'
    }
  }
}
</script>

No comments:

Post a Comment