加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

angularjs – Angular JS如何比Knockout JS更好或者我更喜欢Angu

发布时间:2020-12-17 08:01:30 所属栏目:安全 来源:网络整理
导读:哪一个易于使用? 两者的偏好有哪些特征? 两者的使用百分比是多少? 在使用这两者之前我们应该知道什么? 这是基于你的需要。 For data driven app. Choose Angular. With it’s nice data binding The fundamental difference between the two solutions i
>哪一个易于使用?
>两者的偏好有哪些特征?
>两者的使用百分比是多少?
>在使用这两者之前我们应该知道什么?
这是基于你的需要。

For data driven app. Choose Angular. With it’s nice data binding

The fundamental difference between the two solutions is that AngularJS
manages the whole application and defines guidelines on how the
application code should be structured,whereas with KnockoutJS the
application structure is entirely up to you.

Knockout has a low barrier of entry,but is also harder to manage when
code base and complexity grows. It is not easy to build the necessary
infrastructure correctly,and poor decisions made in structuring code
may cost a lot to fix in the future.

Angular’s ability to bind directly to plain objects,modular
structure,and strict development guidelines prevent many issues right
from the start,and provide a strong architectural foundation for the
application.

Knockout is primarily used to control UI representation in lower
complexity applications,whereas Angular is a JavaScript framework
that is much better suited for large,complex enterprise applications.
It provides not only UI binding,but also best practices for
application structure,development and testing.

添加了很多:

> Knockout就像轻量级Angular
> Knockout没有路由,Angular有它。但如果你愿意的话
在Knockout中使用路由,你可以使用Sammy.js /一个小型Web框架
使用Class / RESTFul Evented JavaScript
> Knockout和Angular具有自动数据绑定功能
> Knockout在.net开发中很受欢迎,而Angular则备份
由Google Angular提供服务,指令,Knockout没有

参考文献:

https://www.devbridge.com/articles/angular-vs-knockout-similarities-and-fundamental-differences/

https://www.codementor.io/reactjs/tutorial/reactjs-vs-angular-js-performance-comparison-knockout

Angular.js vs Knockout.js vs Backbone.js

https://www.quora.com/How-do-Angular-js-and-Knockout-compare

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读