Five reasons you’ll use AngularJS for your next JavaScript project

[AngularJS] is a JavaScript framework built to run single page applications (more on that [here]). My opinion is that it’s the future of JavaScript, and here’s why in five short reasons.

1. Models are POJOs (Plain Old JavaScript Objects)

Sick and tired of casting your JSON query results in heavy, framework-dependent classes ? Boom. No more specific methods, no more events or custom classes declaration.

 

2. Tests, test everywhere

Ever heard of TDD ? No ? Well, once you start coding TDD-style, you can’t go back, believe me. AngularJS works by default with [Jasmine] (which, by the way, is truly awesome), and this ensures that your code never fails, and also automagically creates a comprehensive, never-out-of-date documentation for your fellows developers.

 

3. No obscure templating language : just HTML

Views are plain HTML. As simple as that.

 

4. Dependency injection made simple

I remember when using dependency injection was more complicated than dealing with coupled things. With AngularJS, no need to worry about that : the framework has been built around this concept. You just can’t couple separate things.

 

5. The community

While some job offers still refer at AngularJS as “a new technology”, AngularJS can rely on a strong community. A lot of people use AngularJS and build awesome directives, projects or proofs of concept.

 

6. The documentation

Nah, just kidding. AngularJS documentation sucks. But it tends to improve, don’t worry.

Leave a comment