Angular 5 features
Angular 5 was released in November 2017 and introduced several new features and improvements over Angular 4. Some of the key features of Angular 5 are:
- Build Optimizer: This is a tool that helps to reduce the size of the application by removing unnecessary code.
- Improved Decorator Support: Decorators, which are functions that modify JavaScript classes, received improved support in Angular 5.
- HttpClient: Angular 5 introduced a new HttpClient module, which is a smaller, easier to use, and more powerful library for making HTTP requests.
- Compiler Improvements: The Angular compiler has been improved, providing faster rebuild times and better debugging experiences.
- Internationalized Number, Date, and Currency Pipes: Angular 5 added support for internationalized number, date, and currency pipes, which help to format numbers, dates, and currency values based on the user’s locale.
- Enhanced Content Security Policy (CSP) Support: Angular 5 added enhanced support for Content Security Policy (CSP), which is an added security measure that helps to prevent certain types of attacks, such as cross-site scripting (XSS).
- Router Improvements: The Angular Router has been improved, including support for code-splitting and making it easier to use with third-party libraries.
- Improved Universal Server-Side Rendering: Angular 5 introduced improved server-side rendering, making it easier to render Angular applications on the server and improve performance.