feat(change_detection): added support for ObservableList from package:observe

This commit is contained in:
vsavkin
2015-07-15 13:26:02 -07:00
parent 583c5ffcb5
commit d449ea5ca4
8 changed files with 244 additions and 1 deletions

View File

@ -603,6 +603,8 @@ export class ElementInjector extends TreeNode<ElementInjector> implements Depend
if (isPresent(dirDep.queryDecorator)) return this._findQuery(dirDep.queryDecorator).list;
if (dirDep.key.id === StaticKeys.instance().changeDetectorRefId) {
// We provide the component's view change detector to components and
// the surrounding component's change detector to directives.
if (dirBin.metadata.type === DirectiveMetadata.COMPONENT_TYPE) {
var componentView = this._preBuiltObjects.view.componentChildViews[this._proto.index];
return componentView.changeDetector.ref;