The use of components in Vue

 Assuming the component name is not MyNav,

When using, it will use <my-nav></my-nav>, as for the reason, please refer to: http://cnodejs.org/topic/5816aabdcf18d0333412d323

This record is mainly for the first contact with Vue. The project is a secondary development. Many things need to be learned and learned. When the component is named, the definition cannot be found. Finally, it is found that due to the above reasons, the record is as follows, which is convenient for memory.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325079042&siteId=291194637