HTML is great for declaring static documents, but it falters when we try to use it for declaring dynamic views in web-applications. AngularJS lets you extend HTML vocabulary for your application. The resulting environment is extraordinarily expressive, readable, and quick to develop.
For more details about AngularJs please go though this link.
Pros and Cons of AngularJS
AngularJS should be among your top considerations when choosing the right JS framework. However, in order to make the selection process fair, it is essential to take into consideration its pros and cons.
There are certain features in angular which makes it favorable for use. Following are the benefits of AngularJS, let’s discuss them one by one:
- Open source
- Easy to extend
- Easy to test
- Great MVC
- Google supported
- No Pre-requisite knowledge
- Easy to customize
- Single page application (SPA)
- Customization character
- Interpreted collaboration
- Powerful supportability
- Open source technologies are group oriented
Single Page Application (SPA)
Single page application means only a single HTML web page is loaded and further updation is done on that single page only. Since it is mostly used to create single page application and single page application works fast as well as it is user-friendly.Applications that are built using angular technology are as follows:
- Malhar-Angular-Dashboard, Viktor
- NV-1 (open source musical instrument)
- Taiga (Project Manager application for agile developers and designers)
- ProtonMail (Encrypted Webmail Interface)
- DuckieTv (web app for tracking tv shows)
- Aislel (e-commerce market place)
- SoundNode (Sound Cloud for desktop )
No prerequisite knowledge
Easy to extend and customize
Due to certain built-in attributes, it is easy to extend. These attributes make it possible to extend the functionality of HTML by attaching a specific behavior with it. One can create its own directives too in it therefore it is customized.Customized means adding or removing features or functionality, which is done to satisfy the specific needs. Also, customized software consist of user-friendly features rather than unnecessary elements as it is purely according to individual needs.
AngularJs framework is supported by a large community, Google.The various advantages of Google supported sites are:
- Regular updates are done.
- For distributed or remote users, the anywhere/anytime access capability to the corporate intranet by google supported sites.
- It provides a capacity to work across the operating system.
As we know there are three components of MVC architecture (Model, View, Controller) so in many frameworks, a programmer has to split the code into multiple MVC components. Also, after that programmer has to code again to combine the code of these three parts. While in angular it is being done automatically. Angular strings the code together and hence saves the time of programmer too.
Easy to test
- Jasmine – It is a behavior driven development framework for JavaScrip. It helps in keeping tests structural and documented is vital.
Two-way data binding
AngularJS facilitates faster and easier data binding which doesn’t require a developer to intervene at all. Referred to as two-way data binding, it ensures that changes made to view are instantly displayed in the model and vice-versa.Disadvantages
- Less secure
- No specific way
- Not supported everywhere
- Memory leakage
There is no server authorization and authentication in angular. Authorization means granting permission for data access and identifying a user by validating credentials. AngularJs can’t provide both the features, that’s we call it less secure.
No specific way
It is very vast and complex. In angular, there are many ways to perform the same task so it is difficult to predict which is the most optimized way to perform a certain task.
So far we discussed about Angularjs pros and cons.