Тёмный

Angular Zoneless: Transform Your Apps with This New Feature | Angular 18  

Code with Yogesh
Подписаться 359
Просмотров 126
50% 1

#angular #angular_developer #angulartraining
Angular has always relied on Zone.js to know when something changed, and we can say that it has been the only framework that worked like this.
Why use Zoneless?
The main advantages to removing ZoneJS as a dependency are:
Improved performance: ZoneJS uses DOM events and async tasks as indicators of when application state might have updated and subsequently triggers application synchronization to run change detection on the application's views. ZoneJS does not have any insight into whether application state actually changed and so this synchronization is triggered more frequently than necessary.
Improved Core Web Vitals: ZoneJS brings a fair amount of overhead, both in payload size and in startup time cost.
Improved debugging experience: ZoneJS makes debugging code more difficult. Stack traces are harder to understand with ZoneJS. It's also difficult to understand when code breaks as a result of being outside the Angular Zone.
Better ecosystem compatibility: ZoneJS works by patching browser APIs but does not automatically have patches for every new browser API. Some APIs simply cannot be patched effectively, such as async/await, and have to be downleveled to work with ZoneJS. Sometimes libraries in the ecosystem are also incompatible with the way ZoneJS patches the native APIs. Removing ZoneJS as a dependency ensures better long-term compatibility by removing a source of complexity, monkey patching, and ongoing maintenance.

Опубликовано:

 

5 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 2   
@draconianyt5174
@draconianyt5174 13 дней назад
Angular signals with project sir or asynpipe ke sath v zone less application ke sath please sir
@ysquaresolutions
@ysquaresolutions 13 дней назад
Sure signal is big concept will add all possible examples. angular 17 input output change we wil cover.
Далее
Как пронести Конфеты В ТЮРЬМУ
19:16
Angular Tutorial For Beginners | 3 Hours Course
3:17:50
Learn Ruby on Rails - Full Course
4:03:49
Просмотров 832 тыс.