Advantages and disadvantages of AngularJS
So why do people developers slant towards AngularJS
Have a look at the disadvantages and disadvantages:
The good side
Developed by Google
The first advantage of AngularJS is that Google developed it. So you can be assured that the code is reliable and efficient. This framework was built by a community of dedicated developers and not by a community of amateur hobbyists, as was the case with several other frameworks. AngularJS is maintained by a very large group of Google engineers and even though you may not have access to a large pool of engineers to clear your doubts and post your queries, you have the advantage of gaining the guidance of highly skilled and talented engineers.
Getting started is incredibly easy
Starting with and using AngularJS is incredibly easy. You can actually add a few attributes to your HTML and reap the benefits of a simple Angular app in as much as five minutes. You can use HTML attributes to access Angular S directives.
Two-way data binding
It is possible to do two-way data binding with AngularJS, meaning you can make any data related changes and it would immediately be propagated to the corresponding views and when any change is made in the view, that would happen in the underlying model as well. As soon as the app data changes, there will be corresponding changes in the UI as well.
Use of custom directives
For many developers the directives AngularJS is a personal advantage. If you have been wishing for a browser that would do a couple of tricks for you like creating custom HTML tags or decorate elements with behavior, then Angular JS makes it possible. Additionally, you can also manipulate DOM attributes in several exciting ways.
The built-in dependency injection is something most developers love about AngularJS. This feature helps them to develop, test and understand applications in a better way. With the DI feature, you no longer have to go looking for dependencies, or make them yourself, but would be made and brought before you. In order to ensure you have AngularJS’s core features, you can simply add that parameter and customize it as well.
Client side MVC framework with Angular JS
Use of filters
Filters are used in AngularJS to transform data. The various kinds of filters used are:
Additionally, you can also make your own filter by registering a new filter factory function when you are working with your module.
The bad side of AngularJS
There is a not so popular side to AngularJS. Lets explore that:
The libraries have to be AngularJS specific
Nature of AngularJS framework
Developers say that AngularJS framework has its own specific view of the world, and people who are going to use this framework would have to accept its way of doing things. Though frameworks are useful in helping you generate that MVP (Minimum Viable Product), you still have to ensure its maintainability. The only way to work with AngularJS is to come around to its terms. You can only use a tool that is within its ecosystem, hence, that makes the JS library very restricted.
Additionally, you will have to be aware of any memory leak in JS, because if there is one, it would lead to slow browsers, however powerful your system may be. AngularJS do not support older versions of Internet Explorer 8.0.
The framework is complicated
Some developers say the framework is overcomplicated and unless you are highly experienced, it is not possible to use it. You need to be aware of what is happening in the front end to read the code.
Even so, Angular JS is still the most popularly used framework. You might run into problems, but those are “fixable” problems. Perhaps, developers like using Angular JS because it allows the developers to fragment their logic into modules, making the codes more granulated.
Interesting links about the topic:
Pictures: Flickr.com/ Sebastian
The author: Reema Oamkumar is engaged as a thought leader at Software-Developer-India.com which is a part of the YUHIRO Group. YUHIRO is a German-Indian enterprise which provides programmers to IT companies, agencies and IT departments.