Created
November 11, 2018 22:41
-
-
Save PierBover/2d925b019903df8d98f2e4b42ac6212f 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 element = document.getElementById('fruits-template'); | |
element.parentNode.removeChild(element); | |
var template = element.innerHTML; | |
var component = new Vue({ | |
el: '#fruits', | |
template: template, | |
data: { | |
fruits: ['Apple', 'Mango', 'Banana'] | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment