Introduction To Angular
Introduction To Angular
Angular is one of the most popular JavaScript frameworks for building client-side applications.
It provides a lot of reusable code like predefined methods, classes, interface etc. which we can
use to create dynamic client-side applications.
What is Angular?
Definition: Angular is a JavaScript framework which allows us to create single page
applications.
● Angular is used for building client-side applications using HTML, CSS and a
programming language like JavaScript or TypeScript.
● Angular is not a programming language in itself like JavaScript. Instead, it is a
framework which uses a programming language like JavaScript or TypeScript.
● We use Angular for creating single page applications.
● Improved Performance: SPAs load the necessary resources upfront and retrieve data
asynchronously, reducing page reloads and providing a faster user experience.
● Enhanced Responsiveness: SPAs enable smooth interactions and provide a more fluid
user interface by updating specific sections of the page without full refreshes.
● Native-Like Experience: SPAs mimic the behavior of native applications, providing
users with a familiar and intuitive interface.
● Code Reusability: SPAs separate the front-end and back-end logic, allowing for code
reuse and easier maintenance.
● Offline Support: SPAs can leverage local storage and caching techniques to provide
limited offline functionality.
● Scalability: SPAs can handle a large number of users while minimizing server load due
to client-side rendering and API-driven communication.
● Initial Load Time: SPAs require loading all necessary resources upfront, resulting in a
potentially longer initial load time compared to traditional web applications.
● SEO Challenges: Since most content is loaded dynamically, search engine optimization
(SEO) can be more complex, requiring server-side rendering or additional techniques.
● Increased JavaScript Complexity: SPAs heavily rely on JavaScript frameworks, which
may require additional learning and development expertise.
● Browser Compatibility: SPAs depend on modern browser capabilities and may not
work optimally on older browsers without adequate polyfills.
Why use Angular?
Versions of Angular
The first version of Angular was released in 2010 and it was called AngularJS.
● Angular JS was created as a JavaScript framework for building client applications.
● Soon it gained popularity and it was by far the most popular JavaScript framework
available for creating web applications back then.
● But this framework was not designed with the need of today’s application in mind. Plus,
it was overly complex.
● So, the Angular JS team had to simplify this framework and get rid of all the issues
which it had. But it was not a simple task.
In the year 2016, Angular team decided to re-write the original framework from scratch using
TypeScript as the programming language. And instead of calling it Angular JS, they simply
named it Angular.
● Angular is written using a TypeScript programming language.
● Angular was not a simple upgrade to its predecessor, instead it was completely
re-written from scratch.
● Angular also fixed all the bugs and issues which AngularJS had.
● Since the initial release of Angular 2, there have been other versions of Angular which
have been released over the years.
● After the release of Angular 2, the Angular team simply adheres to a versioning scheme
where a new version of Angular is released every six months.
● That new versions are, however, not the complete rewrite, instead they have some
minor changes or few new features.