Created
July 17, 2017 10:14
-
-
Save amr-swalha/32ab3ba7ae4deea84f7b2d7c99ca71aa to your computer and use it in GitHub Desktop.
v-bind Example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <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