Home >Web Front-end >H5 Tutorial >Getting started with vue basics

Getting started with vue basics

巴扎黑
巴扎黑Original
2017-07-21 09:16:501816browse

Vue.js is a progressive framework for building user interfaces. Unlike other heavyweight frameworks, Vue adopts a bottom-up incremental development design.

Vue’s core library only focuses on the view layer. It is not only easy to get started, but also easy to integrate with third-party libraries or existing projects.

On the other hand, Vue is also fully capable of powering complex single-page applications when combined with single-file components and libraries supported by the Vue ecosystem.

If you know something about angular, it will be very easy for you to learn vue.

Because on the one hand, if you know something about angular, you must have a certain front-end foundation. On the other hand, angular is developed by foreigners and our vue is developed based on angular

And it was developed by us Chinese, so the Chinese must have a better understanding of the programming habits of the Chinese people.

Let’s learn vue together!

First we need to introduce the vue.js file.

The mode we use to open vue is different from angular. The mode we use to open vue is new Vue()

Just a reminder V is uppercase `

What we pass into this object is a json

new Vue({
     el:"#app",
      data:{
             mag:"supper hero"   }
        })

html code:

<div id="app">{{mag}}</div>

Such a simple data display is completed.

The above is the detailed content of Getting started with vue basics. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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