1). Introduction of New Angular 2/4/6 & features

What is Angular?

The first version that was released is Angular1, which is also called AngularJS. AngularJS was based on the model view controller.

Angular2 comes with lots of changes in ground level and framework which having component & model,Classes. Angular 4 released in March 2017, recently Angular 6 was released on May 4, 2018.

Angular developed & maintain by Google Developer.

you can start from Angular.io

Angular 2/4 improved on that functionality and made it faster, more scalable and more modern.
Many people were happy with the functionality that Angular 1.x afforded them. There are so many framework are their & all having their own favors.

Why we choose Angular 2/4/6 over to other JS frameworks?

Basketball!23
Angular is a more Structured framework that allows programmers to focus on simply building 

JavaScript classes. Views and controllers are replaced with components in Angular, Also refined directives. The Angular codebase is more modern, more capable and easier for new programmers to learn than Angular 1.x.

Modularity
In Angular much core functionality has moved to modules. Angular recommends the use of Microsoft's TypeScript language, which introduces the following features:

  • Class-based Object Oriented Programming
  • Static Typing
  • Generics

TypeScript
Angular was written in TypeScript, A superset of JavaScript that implements many new ES2016+ features. Angular 4 is updated to a recent version of TypeScript, which is 2.2. This helps improve the speed and gives better type checking in the project. By focusing on making the framework easier for computers to process, Angular allows for a much richer development ecosystem.

Performance and Mobile
Angular is complete rewrite. Desktop computers will also see dramatic improvements in performance and responsiveness.Angular  was designed for mobile from the ground up.Touch interfaces, limited screen real estate and mobile hardware have all been considered in Angular .the Ionic team is working on an Angular version of their product, providing another way to leverage native device features with Angular.

Animation Package
Animation in Angular 4 is available as a separate package and needs to be imported from @angular/animations. In Angular2, it was available with @angular/core. It is still kept the same for its backward compatibility aspect.

Template
Angular 4 uses <ng-template> as the tag instead of <template>; the latter was used in Angular2.

ngIf
Angular2 supported only the if condition. However, Angular 4 supports the if else condition as well. Let us see how it works using the ng-template.

Pipe Title Case
Angular 4 has added a new pipe title case, which changes the first letter of each word into uppercase.

Http Search Parameters
Search parameters to the http get api is simplified. We do not need to call URLSearchParams for the same as was being done in Angular2.

Router life cycle improved
New router life cycle events for Guards and Resolvers. Four new events: GuardsCheckStart, GuardsCheckEnd, 


Compilation 
Asynchronous template compilation.

Iterative callbacks provided by RxJS. RxJS limits state visibility and debugging, but these can be solved with reactive add-ons like ngReact or ngrx.

Project Architecture and features of Angular 2/4
Component, Model, Templating , Shadow DOM, Form Builder, Change Detection, Routing, Observables, TypeScript, Animation Package,
Http Search Parameters,Smaller and Faster Apps.

Angular 6 release with few awesome features

ng update, ng add, Angular Elements, Angular Material + CDK Components, Angular Material Starter Components, CLI Workspaces, Library Support, Tree Shakable Providers, Animations Performance Improvements, and RxJS v6.



Comments

  1. This is really wonderful information, it really helpful for learners. Hope share more content in this blog
    Angular JS Online training
    Angular JS training in Hyderabad

    ReplyDelete

Post a Comment

Popular posts from this blog

Angular 4 interview questions and answers for experience

8). Vue.js Methods and Event Handling

12). Vue JS - Slots