Vue Introduction: Difference between revisions

From bibbleWiki
Jump to navigation Jump to search
Created page with " =Intro= The vue js lives at https://cdn.jsdelivr.net/npm/vue. Below is a simple example just showing two way binding <syntaxhighlight lang="html"> <!DOCTYPE html> <html lang=..."
 
No edit summary
Line 1: Line 1:
=Intro=
=Intro=
The vue js lives at https://cdn.jsdelivr.net/npm/vue. Below is a simple example just showing two way binding
The vue js lives at https://cdn.jsdelivr.net/npm/vue. Below is a simple example just showing two way binding
<syntaxhighlight lang="html">
<syntaxhighlight lang="html">

Revision as of 10:37, 9 December 2020

Intro

The vue js lives at https://cdn.jsdelivr.net/npm/vue. Below is a simple example just showing two way binding

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.jsdelivr.net/npm/vue"></script>
</head>
<body>
    <div id="app">
        <input type="text" v-model="name">
        <p>Hello {{name}}</p>
    </div>
    <script>
        new Vue({
            el: "#app",
            data() {
                return {
                    name: "John"
                }
            }
        })
    </script>
</body>
</html>