As any other framework, AngularJS had many versions over the years that
continously improved the framework and provided critical fixes. Not surprisingly
the first version has been given a tag v.1.0.0, while the latest one is
v1.8.2. The framework itself has grown considerably since its first release,
with many new features added and common pitfalls resolved.
How to check your AngularJS version?
AngularJS does not come up with its own command line tool, so you cannot get its
version from there, but it does not mean that there are no other ways to do that,
based on how you import your AngularJS bundle.
Check your index HTML file.
In case you decide to import the AngularJS bundle file in your main HTML file,
then you should check for the hint inside the src attribute of your script tag.
When you open the HTML file you should see something like:
As you can see, in the URL there is a version number 1.6.9, which indicates
the version used for your app.
Check your package.json file.
In case you decided to go with a more up-to-date approach and bootstrap your app
with npm, you should check your package.json file in the root
directory of your project. Under the dependencies you should be able to see an
The value for the angular key indicates the version of AngularJS used in your project.
The last approach is the one that covers both before mentioned ways of using AngularJS
in your app. To do it, run your AngularJS application, open Developer Console in the browser, and in the console type:
This should output the version of your AngularJS used in the app.
Each story has its ending…
As the time went on, AngularJS has been steadily replaced with a better engineered
Angular Framework. The names AngularJS and Angular might suggest that those two
frameworks might share the same roots, but actually these are very different
tools. With the newer versions of Angular coming to the market, AngularJS slowly
loses its audience, and in 2018 Google announced that AngularJS will enter Long Term Support mode. This means that only some of the severe issues will be fixed, namely:
Security flaws that occured in the 1.8.x branch of the framework.
Major browser releases that cause bugs in production applications utilizing AngularJS
jQuery library releases that cause bugs in production applications utilizing AngularJS
With the end of Long Term Support, which due to the COVID-19 pandemic was extended until 31st December 2021, AngularJS will no longer be maintained.
You should bear in mind that this can mean serious issues for your business solution,
so perhaps one should treat this as an opportunity to migrate to the younger
and full-of-life brother of AngularJS - Angular.
Advantages of migrating from AngularJS to Angular.
Angular, being a complete rewrite of AngularJS, comes up with a list of advantages
over its predecessor:
Performance - it is claimed, that the Angular app should be on average
5 times faster than AngularJS app.
Typescript - Angular apps are written in Typescript, as opposed to
take advantage of Static Typing, which improves the performance and
reduces the risk of runtime errors, generating huge problems in apps of considerable
Angular CLI - with Angular 2+, you have access to Angular's own Command Line Interface (CLI),
which comes up with a vast amount of features, including app bootstrapping,
component creation, type checking, linting and many more.
Developer-friendly syntax - with a more intuitive
Dependency Injection, Expression Syntax and the Component Driven Development instead of MVC approach, development process is much easier and more