Skip to content

Commit

Permalink
feat(query): implement query update mechanism based on views.
Browse files Browse the repository at this point in the history
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 #3973
  • Loading branch information
rkirov committed Sep 4, 2015
1 parent 9d42b52 commit 5ebeaf7
Show file tree
Hide file tree
Showing 7 changed files with 245 additions and 590 deletions.
Loading

0 comments on commit 5ebeaf7

Please sign in to comment.