>两者的偏好有哪些特征?
>两者的使用百分比是多少?
>在使用这两者之前我们应该知道什么?
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