I am trying to check how to vue.js javascript works.That's also not working for me.Any one like to share what is wrong with html page or what am missing here.
CODE :
<!DOCTYPE html>
<div id="app">
<h1>{{ greeting }}</h1>
</div>
<script src="https://vuejs.org/js/vue.js"/></script>
<script>
new Vue({
e1: '#app',
data: {
greeting : 'Hello from ankit using vue.js!'
}
});
</script>
Current Output of above code in chrome :
{{ greeting }}
Expecting output :
Hello from ankit using vue.js!
Anyone like to share what is wrong with my code ? Please note ,I also cleared cache from browser.