fix(ivy): content query results should be available in content hooks (#25271)

PR Close #25271
This commit is contained in:
Kara Erickson
2018-08-02 14:27:36 -07:00
parent c2c12e52fe
commit 1fb7111da1
2 changed files with 25 additions and 4 deletions

View File

@ -301,12 +301,15 @@ function refreshDescendantViews() {
executeInitHooks(viewData, tView, creationMode);
}
refreshDynamicEmbeddedViews(viewData);
// Content query results must be refreshed before content hooks are called.
refreshContentQueries(tView);
if (!checkNoChangesMode) {
executeHooks(directives !, tView.contentHooks, tView.contentCheckHooks, creationMode);
}
setHostBindings(tView.hostBindings);
refreshContentQueries(tView);
refreshChildComponents(tView.components);
}