Pros and Cons of Angularjs
2013-04-15 15:46
477 查看
Angularjs is being hot recently in front end world. As a MVC framework introduced by Google, it separate concerns of a web app in a sort of WYSIWYG way that
make the development and maintenance more easier and efficient(check this out). If you google something like "angularjs vs xxx.js … " you can see brutal wars among these mvc framework
alliance, and people in the angular troop would say "This is the best and only choice for you !!". After some searching, I find out some pros and cons of angular and hope it can help for choosing a "right" MVC framework from the jungle.
Pros:
1. intuitive. using the view to derive behavior. It's somewhat more easy to understand and startup, and also reduce lots of boilerplate code. http://www.localytics.com/blog/2013/angularjs-at-localytics/
2. two way data binding.
3. removing the need for child views which is a disaster in Backbone. http://tech.nextgxdx.com/2012/09/01/backbone-to-angularjs-removing-the-need-for-child-views/
4. easy unit testing.
Cons:
1. not just working friendly with query plugins and other popular UI widgets (like Kendo UI).
- https://groups.google.com/forum/?fromgroups=#!topic/angular/5tCXyc7jtc4
- https://groups.google.com/forum/?fromgroups=#!topic/angular/QBBX_oGx90w
2. the kind of tech like directive, server or something are relative new that requires an learning curve.
3. projects that built with angularjs is relative less. [compared with origin backbone & marionette] https://github.com/angular/angular.js/wiki/Projects-using-AngularJS
4. under heavily developments so that api could be changed rapidly.
5. the dirty-checking of angular may seem simple but even inefficient vs change listeners backbone or some applied. http://stackoverflow.com/questions/9682092/databinding-in-angularjs
6. do not working with IE6,7 without some tricks and sluggish in IE8, 9 https://groups.google.com/forum/?fromgroups=#!topic/angular/tYrm758kxNo
7. as there are more ngRepeat or ngModel set up, there are more "watch"es that need to be processed by $digest which could slow down your app. http://stackoverflow.com/questions/14485828/angular-js-performance-issues
make the development and maintenance more easier and efficient(check this out). If you google something like "angularjs vs xxx.js … " you can see brutal wars among these mvc framework
alliance, and people in the angular troop would say "This is the best and only choice for you !!". After some searching, I find out some pros and cons of angular and hope it can help for choosing a "right" MVC framework from the jungle.
Pros:
1. intuitive. using the view to derive behavior. It's somewhat more easy to understand and startup, and also reduce lots of boilerplate code. http://www.localytics.com/blog/2013/angularjs-at-localytics/
2. two way data binding.
3. removing the need for child views which is a disaster in Backbone. http://tech.nextgxdx.com/2012/09/01/backbone-to-angularjs-removing-the-need-for-child-views/
4. easy unit testing.
Cons:
1. not just working friendly with query plugins and other popular UI widgets (like Kendo UI).
- https://groups.google.com/forum/?fromgroups=#!topic/angular/5tCXyc7jtc4
- https://groups.google.com/forum/?fromgroups=#!topic/angular/QBBX_oGx90w
2. the kind of tech like directive, server or something are relative new that requires an learning curve.
3. projects that built with angularjs is relative less. [compared with origin backbone & marionette] https://github.com/angular/angular.js/wiki/Projects-using-AngularJS
4. under heavily developments so that api could be changed rapidly.
5. the dirty-checking of angular may seem simple but even inefficient vs change listeners backbone or some applied. http://stackoverflow.com/questions/9682092/databinding-in-angularjs
6. do not working with IE6,7 without some tricks and sluggish in IE8, 9 https://groups.google.com/forum/?fromgroups=#!topic/angular/tYrm758kxNo
7. as there are more ngRepeat or ngModel set up, there are more "watch"es that need to be processed by $digest which could slow down your app. http://stackoverflow.com/questions/14485828/angular-js-performance-issues
相关文章推荐
- Pros and Cons of AngularJS (转)
- Pros and Cons of AngularJS (转)
- The pros and cons of job hopping
- pros & cons of Meson,CMake, Autotools and Tup
- The Pros and Cons of Pair Programming
- angularJs-The factory and service of angularJs
- Item 38: Understand the Pros and Cons of Dynamic(Effective C#)
- Pros and Cons of X command vs. SYSTASK command
- Pros and cons of SVM
- BlackBerry, iPhone, or Android? Pros and cons of mobile devices for business
- Part 35 AngularJS caseInsensitiveMatch and Inline Templates
- Getting Started with AngularJS 1.5 and ES6: part2
- What Is Pros and Cons
- angularjs directive and component 指令与组件 ( 1.5.0 以后 )
- Inventory Management system using AngularJS , PHP RESTful API and MySQL
- AngularJs Test demo &front end MVVM implementation conjecture and argue.
- Difference between synchronized and reentrantlock? Pros and Cons [closed]
- nodejs采坑记录之-“Make sure you have the latest version of node.js and npm installed”
- unspecified Error of js on windows2000 and ie6 to try to save a File.
- Getting Started with AngularJS 1.5 and ES6: part 3