Angular 8 – Backward Compatibility
”;
Angular framework provides maximum compatibility with previous versions. If Angular Team deprecate a feature in a release, it will wait for 3 more release to completely remove the feature. Angular Team release a major version for every six months. Every version will have active maintenance period of six months and then Long Term Support (LTS) period for another one year. Angular does not introduce breaking changes during these 18 months. If Angular version deprecate a feature in version 5, then it will probably remove it in version 8 or in next releases.
Angular maintains documentation and guides of all version. For example, Angular documentation for version 7 can be checked @ https://v7.angular.io. Angular also provides a detailed upgrade path through https://update.angular.io/ site.
To update Angular application written from previous version, use below command inside the project directory:
ng update @angular/cli@8 @angular/core@8
Let us see some of the important changes introduced in Angular 8.
-
HttpModule module and its associated Http service is removed. Use HttpClient service from HttpClientModule module.
-
/deep/, >>> and :ng-deep component selectors are removed.
-
Angular default version of TypeScript is 3.4.
-
Node version supported by Angular is v10 and later.
-
@ViewChild() and ContentChild() decorator behaviour is changed from dynaic to static.
Lazy loading string syntax in router module is removed and only function based is supported.
loadChildren: ''./lazy/lazy.module#LazyModule'' loadChildren: () => import(''./lazy/lazy.module''
”;