亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

Template problem in vue-cli - Stack Overflow
僅有的幸福
僅有的幸福 2017-05-19 10:35:42
0
2
653

In main.js generated with vue-cli tool

import Vue from 'vue'
import App from './App'
import router from './router'

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  template: '<App/>',
  components: { App }
})

[template: '<App/>']What does this sentence mean?
Does it mean using the app.vue template? But I haven’t seen such usage in vue!
There are only:
1 template:'#xxx' Get based on id
2 template:'<xx>...<xx>' Use it directly
Is there any related one? What about the documentation? Thanks

僅有的幸福
僅有的幸福

reply all(2)
過去多啦不再A夢

https://www.mmxiaowu.com/arti...

迷茫

I have answered the answer myself!

The second template:'<xx>....<xx>', <App/> --> <App></App> is just a component?

Attachment: import App from './App' The App component is imported from here

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template