Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <title>VueJS</title>
- </head>
- <body>
- <div id="app">
- <p>VueJS is pretty cool - {{name}} ( {{age}} )</p>
- <p>{{age * 3}}</p>
- <p>{{ Math.random() }}</p>
- <img :src="image">
- <div>
- <input type="text" :value="name">
- </div>
- </div>
- <script type="text/javascript" src="vue.js"></script>
- <script type="text/javascript">
- new Vue({
- el: '#app',
- data: {
- name: "Dmitri",
- age: 23,
- image: "https://78.media.tumblr.com/avatar_39c12973e9fe_128.png"
- }
- });
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement