fix(Input): put @Input above getters

This commit is contained in:
Adam Bradley
2016-01-14 20:05:00 -06:00
parent c740b8e479
commit 1a3d8c8814
4 changed files with 12 additions and 12 deletions

View File

@ -81,11 +81,11 @@ export class Checkbox {
this.checked = !this.checked;
}
@Input()
get checked() {
return !!this._checked;
}
@Input()
set checked(val) {
this._checked = !!val;
this._renderer.setElementAttribute(this._elementRef, 'aria-checked', this._checked.toString());