References #740
This commit is contained in:
mhartington
2015-12-14 18:13:08 -05:00
parent a801a09991
commit b0d685ea85
7 changed files with 38 additions and 5 deletions

View File

@ -11,6 +11,7 @@ import {Form} from '../../util/form';
*
* @property [checked] - whether or not the checkbox is checked (defaults to false)
* @property [value] - the value of the checkbox component
* @property [disabled] - whether or not the checkbox is disabled or not.
*
* @usage
* ```html
@ -67,6 +68,9 @@ export class Checkbox {
if (ngControl) ngControl.valueAccessor = this;
}
/**
* @private
*/
ngOnInit() {
this.labelId = 'label-' + this.inputId;
}