First released back in 2012 by Google, AngularJS was the first big-hitter in Single Page Application(SPA) frameworks. A big appeal of AngularJS was its unobtrusive approach as you could control which parts of your page interacted with the AngularJS framework.
In 2016 Angular 2 was released simply named Angular. The reasoning was that this was a groundbreaking update with no backwards compatibility with AngularJS and therefore represented a new version that would be taken forwards.
The lack of backwards compatibility with AngularJS meant it lost a lot of trust with the developer community as entire applications would have to be rewritten from scratch to use the new Angular framework. Many see this as the reason React, and to a lesser extent VueJS, gained huge traction in the frontend framework space.
Since Angular’s release, it has ensured no further groundbreaking changes with backwards compatibility maintained across versions.
At the time of writing version 6 has just been released.
The first thing to know if you want to give Angular a try is that it’s built with Typescript, a superset of Javascript that gives you static typing, interfaces, classes, namespaces and many other features that Javascript doesn’t natively support. All valid Javascript is valid Typescript so it’s not a completely new language to learn but it does have some differences from traditional Javascript. If you want to learn Angular you should get familiar with Typescript.
Some of the main benefits of using Angular are:
Importantly, Angular is also actively maintained by a very large community which includes Google. Knowing your chosen framework is going to be updated to keep it current is a necessity for production applications. You can’t afford to rewrite sites in a new framework often.
While there are many positives to choosing Angular there are some drawbacks.
Aside from Angular’s coupling to Typescript all those other drawbacks can be found in other frameworks too so they aren’t necessarily a reason to avoid Angular.
Probably the biggest drawback is that Angular is a huge and complex framework (think Rails compared to Sinatra) so it can have a long learning curve to master and may feel like overkill for small projects you’ll make yourself.
The easiest way to get started is to follow the guide on the Angular Site. That will take you through installation and editing your first components.
You will need node and npm installed. I personally prefer to use nvm to manage my node versions but however you want to do it is up to you.
Follow along with the getting started guide on the Angular Site and ensure you have your environment set up correctly
Skim through this Angular Fundamentals guide on the architecture of an Angular app to get a high-level overview of how an app is put together
Try this Angular 8 Tutorial to get an idea of the power of using a framework like Angular