feat(core): add query support to view engine

Part of #14013
closes #14084
This commit is contained in:
Tobias Bosch
2017-01-23 16:59:20 -08:00
committed by Victor Berchet
parent fc8694ed11
commit 1e729d7ba2
18 changed files with 1022 additions and 184 deletions

View File

@ -60,3 +60,11 @@ export function checkAndUpdateBindingWithChange(
}
return null;
}
export function declaredViewContainer(view: ViewData) {
if (view.parent) {
const parentView = view.parent;
return parentView.nodes[view.parentIndex];
}
return undefined;
}