AngularJS extends HTML to support dynamic
applications which means it’s well suited for CRUD-centric types of
applications. For example, it allows <option> tags in a <select> to
be dynamically generated without having to write custom JavaScript code to
perform that task, tracks changes made to UI elements and the data they’re
bound to, provides filtering/sorting support, and much more
AngularJS frees you from having to do the
following:- Register callbacks
- Manipulate the DOM programmatically
- Move data in and out of the UI manually with code
- Writing a bunch of initialization code just to get started
- Data binding
- Data filtering/sorting
- Data templates
- Ajax support
- Form validation
- Routing
- History support
- Deep linking
- Modular and reusable components
- Loosely coupled architecture (dependency injection)
- MVC-style applications
- Architected with unit testing in mind
advantages and disadvantages of angularJS
AngularJS is a great choice if your are building a
CRUD (create/read/update/delete) client side app that:
- can benefit from data-binding and automatic DOM manipulation which can be expressed via Angular's declarative templates
- if you are into writing succinct testable JavaScript code
- your app communicates with the server via XHR/JSONP
If your app is doing a lot of highly customized DOM manipulation, canvas or WebGL stuff, then Angular can still help you structure your app, but you will need to do a lot of heavy lifting yourself (or with a use of other libraries).
- can benefit from data-binding and automatic DOM manipulation which can be expressed via Angular's declarative templates
- if you are into writing succinct testable JavaScript code
- your app communicates with the server via XHR/JSONP
If your app is doing a lot of highly customized DOM manipulation, canvas or WebGL stuff, then Angular can still help you structure your app, but you will need to do a lot of heavy lifting yourself (or with a use of other libraries).

0 comments:
Post a Comment