<template>
  <div>
    <button @click="add">Increment</button>
    <div>
      {{ count }}
    </div>
   <HelloWorld></HelloWorld>
  </div>
</template>
<script>
import HelloWorld from './components/HelloWorld.vue';



export default{
    data() {
        return {
            count: 0
        };
    },
    methods: {
        add() {
            this.count++;
        }
    },
    mounted() {
        console.log(this.count);
        console.log("vue要开始学习了哦");
    },
    components: { HelloWorld }
}
</script> 

