Slide 38
Slide 38 text
Motivation
– Control flow is built into the renderer, so you don’t have to import the
structural directives (e.g., CommonModule, NgIf).
– Dummy DOM elements such as are no longer needed.
– The structural directive syntax (e.g., *ngIf) is not very common.
– Better performance (up to 90% for @for), no longer tied to Zone.js.
– Improve developer experience when dealing with common scenarios,
such as “else” blocks, empty lists or deferring loading certain content.
– ⚠ But: Built-in control flow is not extensible, in contrast to structural
directives (e.g., *ngxPermission).
The New Angular
Maximizing Performance and Productivity
Built-in Control Flow
https://angular.dev/guide/templates/control-flow https://blog.angular.io/introducing-angular-v17-4d7033312e4b