refactor(core): introduce ViewRef
and ProtoViewRef
BREAKING CHANGES: - `NgElement` merged into `ElementRef` - `Compiler.compile…` returns `ProtoViewRef` - `ViewContainer` uses `ProtoViewRef`s and `ViewRef`s. - `ViewRef`/`ProtoViewRef` in renderer were renamed to `RenderViewRef`/`RenderProtoViewRef`. Related to #1477 Closes #1592
This commit is contained in:
4
modules/angular2/src/forms/directives.js
vendored
4
modules/angular2/src/forms/directives.js
vendored
@ -1,6 +1,6 @@
|
||||
import {Decorator, onChange} from 'angular2/src/core/annotations/annotations';
|
||||
import {Ancestor} from 'angular2/src/core/annotations/visibility';
|
||||
import {ElementRef} from 'angular2/src/core/compiler/element_injector';
|
||||
import {ElementRef} from 'angular2/src/core/compiler/element_ref';
|
||||
import {Optional} from 'angular2/di';
|
||||
import {Renderer} from 'angular2/src/render/api';
|
||||
import {isPresent, isString} from 'angular2/src/facade/lang';
|
||||
@ -83,7 +83,7 @@ export class CheckboxControlValueAccessor {
|
||||
}
|
||||
|
||||
writeValue(value) {
|
||||
this._renderer.setElementProperty(this._elementRef.hostView.render, this._elementRef.boundElementIndex,
|
||||
this._renderer.setElementProperty(this._elementRef.parentView.render, this._elementRef.boundElementIndex,
|
||||
'checked', value)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user