Created
November 2, 2015 20:20
-
-
Save yyx990803/47b19d36e02ca8945a6b to your computer and use it in GitHub Desktop.
This file contains 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
var Example = Vue.extend({ | |
template: '<div>{{ message }}</div>', | |
data: function () { | |
return { | |
message: 'Hello Vue.js!' | |
} | |
} | |
}) | |
// register it with the tag <example> | |
Vue.component('example', Example) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment