Answer the question
In order to leave comments, you need to log in
What advantages can I have if javascript fills value tags in HTML?
Hello.
I'm learning Vue JS and there are some problems with understanding.
For example, there is such a code where I give the buttons a value using the framework.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Vue JS Learn</title>
</head>
<body>
<div id="root" >
<button v-bind:title="title">Hower Over Me</button>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.4.2/vue.min.js"></script>
<script>
Vue.config.devtools = true; // Install in to Google Chrome Vue JS Devtools.
var app = new Vue({
el: '#root',
data: {
title: 'Javascript'
},
});
</script>
</body>
</html>
Answer the question
In order to leave comments, you need to log in
If the framework is used only for this, then probably it is not needed?
But that's not what it's used for.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question