Commit 5ebeaf7
committed
feat(query): implement query update mechanism based on views.
Instead of working with finer grained element injectors, queries now
iterate through the views as static units of modification of the
application structure. Views already contain element injectors in the
correct depth-first preorder.
This allows us to remove children linked lists on element injectors and a
lot of book keeping that is already present at the view level.
Queries are recalculated using the afterContentChecked and
afterViewChecked hooks, only during init and after a view container has
changed.
BREAKING CHANGE:
ViewQuery no longer supports the descendants flag. It queries the whole
component view by default.
Closes angular#39731 parent 9d42b52 commit 5ebeaf7
File tree
7 files changed
+245
-590
lines changed- modules/angular2
- src/core
- compiler
- test/core/compiler
7 files changed
+245
-590
lines changed
0 commit comments