Saturday, September 8, 2018

Angular - Introduction

This is the introductory post for the series of post I am gonna write on Angular - a front-end web application framework.

Before heading to Angular let me give a small note on its predecessor AngularJS: 
  • A JavaScript based open source front-end web application framework (maintained by google) – a library written in JavaScript.
  • Normally referred as Angulrar 1 or Angular1.X ( released on October 2010)
  • It’s perfect for SPAs (Single Page Applications) – a web application or a web site that interacts with the user by dynamically rewriting the current page rather than reloading entire new pages from server.
Even though Angular is successor of AngularJS but its completely different than AngularJS, since its rewritten from ground up using TypeScript, so you cannot directly upgrade your application to Angular from AngularJS.

Angular is commonly referred as Angular 2+ or Angular v2 and above.

Versions:
o   Angular 2 –  released on year 2016
o   Angular 4 –  released on early 2017
o   Angular 5 –  released on late 2017               
o   Angular 6 – released on year 2018

o   Angular 7 – future 

Difference between Angular and AngularJS
  •  Performance
    • Improved test-ability, dependency injection  
  • Support for Mobile Applications
    • AngularJS was not directly compatible on mobile devices, one had to use third party frameworks to make AngularJS application run on mobile devices on the other hand Angular 2 is written from ground up with the support for mobile devices, so any single page application built in Angular works across mobile and desktop devices.
  •  Component Based Development
    • Component based development is the future of web development and in Angular 2 everything is component.
    • Component facilitate code reuse.
    • Use of component makes Angular 2 more testable.
  • More language choices – with Angular 2 we have more language choices available to write the code, below is the list of supported languages
    • ECMAScript 5 (Javsactipt?)
    • ECMAScript6 (aka ES 2015)
    • TypeScript (the most popular language among the list, Angular itself is written in TypeScript. TypeScript has great support for ECMAScript 6 standard.)
    • Dart
    • PureScript
    • Elm etc

No comments:

Post a Comment