R
R
Rishat Sultanov2017-08-27 16:08:48
JavaScript
Rishat Sultanov, 2017-08-27 16:08:48

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>

I can just as well upload this data from the backend with the same blade from laravel.
Or is there some kind of plus in download speed, or is it just a bun?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Aksentiev, 2017-08-27
@rishatss

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 question

Ask a Question

731 491 924 answers to any question