Home>Article>Web Front-end> A brief discussion on the difference between vue and angular

A brief discussion on the difference between vue and angular

零下一度
零下一度 Original
2017-06-17 17:21:30 2838browse

This article mainly introduces vue in detailbootstrapA small example has a certain reference value. Interested friends can refer to it

vue and angular are very They all look like MVVM. The reason is all clear, that is, the difference in syntax

I think the difference between vue and angular:

1.vue is lighter, more convenient, and suitable for mobile development

2.vue is simpler. .

The difference between angular and vue instructions is roughly ng-xxx and v-xxx.
vue uses new Vue to create an instance, then binds data to theattributedata, and adds methods to the attribute methods.
vue’sLoopThe traversal is v-for="",Eventis v-on: clicl="";

Go directly to the code .

    Title       


用户信息表
序号 名字 年龄 操作
{{index+1}} {{item.name}} {{item.age}}

暂无数据

Effect:

The above is the detailed content of A brief discussion on the difference between vue and angular. 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