Home>Article>Web Front-end> A brief discussion on the difference between vue and angular
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!