Angular 17 New Feature: Deferrable Views

Опубликовано: 22 Октябрь 2024
на канале: Igor Sedov
3,331
113

Angular 17 introduces a new feature called deferrable views. In this video, I'll show you how to use one defer block in a view to check for image comments and use deferred loading when any exist. Now inside the template we can better control the page generation process depending on the conditions.

ℹ️ One use case mentioned in RFC "Deferred Loading" (the link is below) is deferred loading of video comments. My explanation is based on a similar case - deferred loading of an image comments.

A big thank you to the ‪@Angular‬ team for all their hard work on the new version! 👍

Sources:
▪️RFC "Deferred Loading": https://github.com/angular/angular/di...
▪️Implement new block syntax: https://github.com/angular/angular/pu...

I hope this is helpful!