Angular 18: New Features and Updates

Angular 18: New Features and Updates

Angular 18 introduces several exciting features and improvements. Below are the highlights:

1.?????? Experimental Zoneless Change Detection:

  • Historically, Angular relied on a library called zone.js for triggering change detection. However, this library had some downsides in terms of developer experience and performance.
  • Angular 18 introduces experimental support for zoneless change detection, which means you can now use Angular without relying on zone.js.
  • To try zoneless support, add provideExperimentalZonelessChangeDetection?to your application bootstrap and remove zone.js from the pollyfills in angular.json.
  • Benefits of zoneless change detection include improved composability from micro-frontends, faster initial rendering, smaller bundle size, and simpler debugging.

?

2.?????? Angular.dev as the New Home for Angular Developers:

  • Angular.dev is now the central hub for angular developers. It provides resources, documentation, and community support.
  • Whether you’re a beginner or an experienced Angular developer, Angular.dev is the place to explore and learn about Angular.

3.?????? Stable Features and Improvements:

  • Material 3, deferrable views, and built-in control flow have graduated to stable status. These features come with enhancements and improvements.
  • Server-side rendering (SSR) also received upgrades, including i18n hydration support, better debugging, and hydration support in Angular Material.
  • Additionally, event replay is now powered by the same library as Google Search.


In addition to these highlights, Angular 18 also brings TypeScript 4.7 support, component-level state management, improved developer tooling, and enhanced Angular Material and CDK.

要查看或添加评论,请登录

社区洞察

其他会员也浏览了