NG-NL 2016: Pascal Precht - Angular 2 Change Detection Explained

preview_player
Показать описание
During NG-NL Pascal Precht gave a talk about Change Detection in Angular 2
Рекомендации по теме
Комментарии
Автор

finally a better explanation than all those pay me to view course sites with mostly bad trainers

y.
Автор

Really liked Pascal's presentation and video. Change detection is so cool... And the component-level, manual toggling on/off of change detection is so VERY cool.
Holy crap - even more important is that I will no longer have requirements to to $apply( ) and $evalAsync( ) and all the other nastiness that we endured in ng 1.

ThomasBurleson
Автор

33:40 - it's not a bug I think. It only call the hooks for AfterViewInit and AfterViewChecked for Comp2 because Comp2 is inside Comp1 refreshViews(), so it gets called. Because it is set to OnPush, it's marked so the Change Detection isn't called, it isn't calling refreshViews on it's children (because no input bindings changed), but it calls the Lifecycle hooks and

MrGoginel
Автор

It is a great presentation, everything is very interesting and quite well explained!

camedar
Автор

At 20:49, the animation shows breadth-first traversal, but I think the components are checked depth-first.

mrajcok
Автор

At 38:45, where markForCheck() is called... since only the component state is changing, wouldn't it be more efficient to call this.cd.detectChanges(), and only run change detection on that one component, instead of marking all of the components up the tree and running change detection on all of those?

mrajcok
Автор

Great video but my gawd please reduce the volume of the before/after music it's INSANELY LOUD compared to the video itself. Almost blew my ears out.

laytonmiller
Автор

Excellent Presentation. A lot to learn :)

nishauttwani
Автор

Really interesting talk. I actually needed this thank you

cedvdb
Автор

Would be interested in knowing more about why the side effects error occurs and how to prevent that error

DavidAlsh
Автор

What is VM, in this context? and where can I read about it

jojojawjaw
Автор

Awesome!
Can you share the link for the demo's?

ShlomiLevi
Автор

Is this still relevant with Angular 8?

Smiley
Автор

In case of skipping the whole component tree in case of immutabele object come with one important prerequisites.


Time:- 31.04

chaitanyababar
Автор

a bit off-topic butr where can i find the sound track at the beginning of the video?

JacerOmriDass
Автор

Very interesting talk. Great work.
But its quite distracting to hear you use "basically" all the time...
Cheers

mcpop
Автор

Almost 2022 and demos are still bugged. Cool presentation though

moonstone
Автор

So he spent 45 minutes to explain similar to bubbling and capturing event phases of the DOM?

I do not want to be super-duper critical, but he did not sound very convening as:
1) Demo did not start
2) Demonstrated the bug of the technology
3) Everything that said did not sound very logical form time to time

May be the technology is good, but it does not sounds as it is.

Queenbg