Home > Web Front-end > Vue.js > What is app.vue

What is app.vue

藏色散人
Release: 2021-10-26 10:53:06
Original
8952 people have browsed it

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.

What is app.vue

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: &#39;App&#39;
}
</script>
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template