Home >Web Front-end >Vue.js >What is app.vue
app.vue is the first add-in for vue page resources. It is the main component and page entry file. All pages are switched under App.vue; it is also the key to the entire project. app.vue is responsible for building Definition and collection of page components.
The operating environment of this article: Windows 7 system, Vue2.9.6, Dell G3 computer.
What is app.vue?
app.vue is the first add-in for vue page resources, the main component, and the page entry file. All pages are switched under App.vue; it is also the key to the entire project, app. Vue is responsible for building definitions and gathering page components.
<template> <div id="app"> <img src="./assets/logo.png"> <router-view/> </div> </template> <script> export default { name: 'App' } </script>
app.vue can be used as the homepage of the website, and you can also write animations or styles that are common to all pages. You don’t have to write code on it. As long as you fill in the routing in index.js in the router folder.
Introduction to vue:
Vue (pronounced /vjuː/, similar to view) is a progressive framework for building user interfaces. Unlike other large frameworks, Vue is designed to be applied layer by layer from the bottom up. Vue's core library only focuses on the view layer, which is not only easy to get started, but also easy to integrate with third-party libraries or existing projects. On the other hand, when combined with a modern tool chain and various supporting libraries, Vue is fully capable of providing drivers for complex single-page applications.
Recommended: "The latest 5 vue.js video tutorial selections"
The above is the detailed content of What is app.vue. For more information, please follow other related articles on the PHP Chinese website!