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"?
-
You should probably raise a documentation issue on their project if you feel it's lacking in informationPhil– Phil2016年09月26日 03:53:22 +00:00Commented Sep 26, 2016 at 3:53
-
1May it be referring to Lifecycle Hooks?choz– choz2016年09月26日 03:55:21 +00:00Commented Sep 26, 2016 at 3:55
1 Answer 1
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
Sign up to request clarification or add additional context in comments.
4 Comments
choz
I don't think if this should be considered as one possibility of what event cycle is. Since, there's actually no cycles in JS native events.
Manish
i mean events are emiited on change & --------------> from parent change is propagated <--------------- angular.io/resources/images/devguide/architecture/…
Manish
report it to the community(github.com/angular/angular/issues). They can give some insight. I am also bit confused :(
choz
Oh got it.. Actually this might be it.
lang-js