Carlos Aguni

Highly motivated self-taught IT analyst. Always learning and ready to explore new skills. An eternal apprentice.


Vue 2 Live no webpack

22 Apr 2022 »
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <script src="https://cdn.jsdelivr.net/npm/vue@2.6.14/dist/vue.min.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/axios@0.24.0/dist/axios.min.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/vue-axios@3.3.7/dist/vue-axios.common.min.js"></script>
  <script src="https://d3js.org/d3.v7.min.js"></script>
  <title>Document</title>
</head>
<body>
  <div id="app"></div>

  <script>
    Vue.use(VueAxios, axios)

    new Vue({
      el: '#app',
      template: `
      <div>
         
        <br/>
        <button type="buttom" @click="val += 1">Add</button>
      </div>
      `,
      computed: {},
      data(){
        return {
          msg: 'Hello World',
          val: 0,
        }
      },
      mounted(){

      },
      methods: {

      },
    })
  </script>

  <style>

  </style>
</body>
</html>