mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Queries allow a directive to inject a live list of directives of a given type from its LightDom. The injected list is Iterable (in JS and Dart). It will be Observable when Observables are support in JS, for now it maintains a simple list of onChange callbacks API. To support queries, element injectors now maintain a list of child injectors in the correct DOM order (dynamically updated by viewports). For performance reasons we allow only 3 active queries in an injector subtree. The feature adds no overhead to the application when not used. Queries walk the injector tree only during dynamic view addition/removal as triggered by viewport directives. Syncs changes between viewContainer on the render and logic sides. Closes #792 |
||
|---|---|---|
| .. | ||
| compiler_spec.js | ||
| component_url_mapper_spec.js | ||
| directive_metadata_reader_spec.js | ||
| element_injector_spec.js | ||
| integration_spec.js | ||
| private_component_loader_spec.js | ||
| query_integration_spec.js | ||
| query_list_spec.js | ||