Vue 'export default' vs 'new Vue'

后端 未结 4 455
轮回少年
轮回少年 2021-01-29 18:21

I just installed Vue and have been following some tutorials to create a project using the vue-cli webpack template. When it creates the component, I notice it binds our data ins

4条回答
  •  不要未来只要你来
    2021-01-29 19:06

    export default is used to create local registration for Vue component.

    Here is a great article that explain more about components https://frontendsociety.com/why-you-shouldnt-use-vue-component-ff019fbcac2e

提交回复
热议问题