Angular 15: Everything You Need to Know About the New Features

2 min read
Share:

Angular 15 is the latest version of the Angular framework. It was released on March 8, 2023. It includes several new features and improvements. In this blog, we’ll talk about those updated features.

  • Standalone API’s

      • Now we can develop applications without NgModules.
      • This component can now be used in any Angular application without having to be part of a module

Blog image

      • Standalone API allows you to bootstrap applications using single component
  • Router and HttpClient Tree shakable API’s

  • Directive Composition API

      • The directive composition API brings code reuse to another level!
      • The directive composition API only works with standalone directives.
  • Image directive is now stable

      • The NgOptimizedImage the directive makes it easy to adopt performance best practices for loading images.                   Blog image
      • Enable the directive

Blog image

      • Automatic srcset generation:
      • Fill mode
        • This mode causes the image to fill its parent container, removing the requirement to declare its width and height.
  • Functional router guards

      • Together with the tree-shakable standalone router APIs, we worked on reducing boilerplate in guards.

        Blog image

  • Router unwraps default imports.

      • To make the router simpler and reduce boilerplate further, the router now auto-unwraps default exports when lazy loading.
      • This is how it used to be Previously.

Blog image

        • As per the new code:

Blog image

  • Better stack traces

     To solve the Debugging struggles for Angular developers

 

 

  • More improvements in components

    • Range selection support in the slider.

Blog image

    • Improvements in the experimental esbuild support.
    • The improved experimental ESbuild support makes building Angular applications faster and more efficiently possible.
    • Automatic imports in language service.
    • CLI improvements.

Conclusion

Angular 15 is a major release with several new features and improvements. The new features are designed to make Angular easier to use, more performant, and more scalable. If you are using Angular, I recommend upgrading to Angular latest as soon as possible.

Leave a Reply

Your email address will not be published. Required fields are marked *