Angular 8 is out : How is it compared with Angular 7
1. Differential Loading
Angular 8 can create a separate bundle for polyfills depending on your browser list. Following a nomodule attribute, Angular will build additional files for polyfills. Nomodule prevents a script from being executed in user agents that support module scripts, allowing Angular to decrease the bundle size and hence the load.
2. Templates in SVG format
Up until Angular 7, you only had the option to use inline HTML or external HTML as a template. With Angular 8, SVG files can be directly used as a template.
The very much hyped Ivy is Angular’s new rendering pipeline and view engine. Once Ivy is implemented, it is going to make the app features smaller, simpler and faster. Ivy follows the locality principle, where only one file is compiled at a time. It looks at only the component and not its dependencies, which leads to faster compilation and simplification of the process. It also enables backward compatibility.
4. Bazel compatible
Unlike its predecessor, Angular 8 provides a possibility to build your CLI application with Bazel- an open source tool developed and widely used by Google. The advantages of using Bazel with Angular are:
- Building back and front ends with the same tool
- Incremental builds and tests
- The possibility of having remote builds and cache on the same platform
5. Location Angular
The Angular team provides support to all developers who continue to use AngularJS, and encourages them to upgrade to Angular. Having added $location service to the latest Angular 8, it provides the ability to retrieve the state from Location service, and track any other location changes.
6. Added support for SASS
The CLI available in Angular uses dart-sass instead of node-sass to build Sass files. The Dart implementation has replaced the iconic Ruby, and is notoriously faster.
7. Added functionality to Navigation Extras in the Router
Angular 8.0 is packed with new features, bug fixes and improvements. Observations include performance improvement, bug fixing, dependency injection and added features for core framework. We believe Angular 8 being smaller, faster, and easier to use shall be an aid to developers.