Why are my Vue instance's properties and methods not available in the template?

前端 未结 1 522
余生分开走
余生分开走 2021-01-24 18:32
  • I set up a Vue.js CLI project.
  • On a page, I want to define a variable in data() and then use it in my template.
  • Why does the following code
1条回答
  •  遥遥无期
    2021-01-24 18:55

    You need to add

提交回复
热议问题