feat(ivy): support deep queries through view boundaries (#21700)

PR Close #21700
This commit is contained in:
Pawel Kozlowski
2018-01-17 17:55:55 +01:00
committed by Misko Hevery
parent 3e03dbe576
commit 5269ce287e
9 changed files with 519 additions and 82 deletions

View File

@ -8,9 +8,11 @@
import {ComponentTemplate} from './definition';
import {LElementNode, LViewNode} from './node';
import {LQuery} from './query';
import {LView, TView} from './view';
/** The state associated with an LContainer */
export interface LContainer {
/**
@ -67,12 +69,17 @@ export interface LContainer {
*/
readonly template: ComponentTemplate<any>|null;
/**
* A count of dynamic views rendered into this container. If this is non-zero, the `views` array
* will be traversed when refreshing dynamic views on this container.
*/
dynamicViewCount: number;
/**
* Queries active for this container - all the views inserted to / removed from
* this container are reported to queries referenced here.
*/
query: LQuery|null;
}
/**