Angular Components In Depth 19 - Change detection strategy

preview_player
Показать описание

Learn about how Angular change detection works, and how you can optimize it by picking a change detection strategy to look for object instance references, instead of a deep object comparisons.

This course is a deep dive into components in Angular. Learn about the various features of Angular components and powerful ways of customizing your component's behaviors - Event handling, view children, change detection, content projection and more!
Рекомендации по теме
Комментарии
Автор

Is Onpush change detection strategy much better to use when let's say, the data that object contains are thousands in number? does it also affect performance if data is huge? than just checking all the changes on the code deeper?

monsterhuntergo
Автор

All are clear, except the below one.
On 09:20, why do you change FOREACH to MAP?
the FOREACH also can do the same functionalities of MAP used, right?
Please lemme know if there is any importance for the change?

thirumanitheivarajan
Автор

Does it matter whether you’re using reactive forms versus template driven forms?

justingiovanetti
Автор

Hmm I did something wrong.. if I change pages ngClass won't keep state, isFav will be false again. And if i go from page 1 to 2 .. 3 then back again expand all won't work anymore. Wonder what I did wrong

Alexandru-OM