This commit is contained in:
Max Lynch
2015-07-20 13:25:52 -05:00
parent 80d1d00157
commit 34b62ff172
9 changed files with 109 additions and 6 deletions

View File

@ -143,7 +143,8 @@ export class SegmentControlValueAccessor {
// both this.value and setProperty are required at the moment
// remove when a proper imperative API is provided
this.value = !value ? '' : value;
this.renderer.setElementProperty(this.elementRef.parentView.render, this.elementRef.boundElementIndex, 'value', this.value);
this.renderer.setElementProperty(this.elementRef, 'value', this.value);
this.segment.value = this.value;
this.segment.selectFromValue(value);