Vue entry, vue
Vue. js is a progressive framework for building user interfaces. Different from other heavyweight frameworks, Vue adopts a bottom-up and incremental development design.
The core Vue Library only focuses on the view layer. It is not only easy to use, but also easy to integrate with third-party libraries or existing projects.
On the other hand, when used in conjunction with a single file component and a Library Supported by the Vue ecosystem, Vue can also provide drivers for complex single-page applications.
If you know something about angular, it will be very easy for you to learn vue.
On the one hand, if you have a certain understanding of angular, you must have your front-end foundation. On the other hand, angular is developed by foreigners, and our vue is developed based on angular.
It is developed by Chinese people. It is essential for Chinese people to better understand their programming habits.
Let's take a look at vue!
First, we need to introduce the vue. js file,
The Mode for enabling vue is different from that for angular. The mode for enabling vue is new Vue ()
Note that V is capitalized'
The input in this object is a json
New Vue ({el: "# app", data: {mag: "supper hero "}})
Html code:
<Div id = "app" >{{ mag }}</div>
Such a simple data presentation is complete.