Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Understanding Angular data binding

Tags:

angular

While reading Angular 2 documentation, I came across this (emphasis mine)

Angular processes all data bindings once per JavaScript event cycle, from the root of the application component tree through all child components.

Please explain in as much detail as possible what this means? Especially what is "once per event cycle"?

like image 637
treecoder Avatar asked Dec 06 '25 03:12

treecoder


1 Answers

I think it refers to any change or event triggered(Like changing input field ).Once any change occurs it starts from top to bottom. you can learn more here https://vsavkin.com/change-detection-in-angular-2-4f216b855d4c#.a3ggxt9hl

like image 132
manish.nith Avatar answered Dec 07 '25 17:12

manish.nith



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!