Skip to content

Instantly share code, notes, and snippets.

@amr-swalha
Created July 17, 2017 10:14
Show Gist options
  • Select an option

  • Save amr-swalha/32ab3ba7ae4deea84f7b2d7c99ca71aa to your computer and use it in GitHub Desktop.

Select an option

Save amr-swalha/32ab3ba7ae4deea84f7b2d7c99ca71aa to your computer and use it in GitHub Desktop.
v-bind Example
<template>
<div class="hello">
<h1>{{ msg }}</h1>
<h2 v-bind:title="tooltip">{{ employee }}</h2>
</div>
</template>
<script>
export default {
name: 'hello',
data() {
return {
msg: 'Welcome to Your Vue.js App',
employee: 'David James',
tooltip:'Hey I\'m a tooltip'
}
}
}
</script>
<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment