Friday, January 4, 2019

Difference between angular 2 and angular 6?

Points are :-

1.) Bundle size in angular 6 is reduced and load time of application is also improved.
2.) And angular 2 have typescript 2.1 support and angular 6 have latest typescript 2.7+
3.) Angular 2 Don't have support of native element and angular 6 comes with added to support of native element.
4.)  The HttpModule has been replaced by the HttpClientModule, which is easier to use and has a few more features.
5.) The biggest changes are probably the router and the HTTP-coomunication.
6.) ng update <package> is a new CLI command that analyzes your package.json.
7.)Another new CLI command ng add <package> makes adding new capabilities to your project easy. ng add will use your package manager to download new dependencies and invoke an installation script.
8.)The biggest addition is the new tree component for displaying hierarchical data. These new tree components come in both styled (Material’s mat-tree) and unstyled versions (CDK’s cdk-tree).Alongside the tree, we also have new badge and bottom-sheet components.
9.) Angular has been updated to use v6 of RxJS.
10.) Animation Performance Improvement by removing web annimaion-pollyfill.
11.) To make your applications smaller, we’ve moved from modules referencing services to services referencing modules. This allows us to only bundle services into your code base in modules where they are injected.No references are needed in our NgModule.
12.) Creating and Building Library Support.
13.)CLI-V6 now supported.
9.) 

No comments:

Post a Comment

48 answers on StackOverflow to the most popular Angular questions I gathered the most common questions and answers from Stac...