Angular 18, the next planned release of Google’s TypeScript-based web app development framework, is due to arrive on May 22, with features such as deferrable views and declarative control flow moving out of developer preview to a stable stage.
Deferrable views, which are also known as @defer
blocks, can be used in component templates to defer the loading of select dependencies within the template, thus reducing the initial bundle size of the application. Declarative control flow is a new built-in syntax for control flow that brings functionality such as NgIf
, NgFor
, and NgSwitch
into the framework itself (as @if
, @for
, and @switch
respectively), allowing developers to conditionally show, hide, and repeat elements.
To read this article in full, please click here