chore(): fix host properties for MD components.
This commit is contained in:

committed by
Jeremy Elbourn

parent
dff4795e49
commit
b9eab463f7
@ -2,6 +2,7 @@ import {Component, View, Attribute} from 'angular2/angular2';
|
||||
import {isPresent} from 'angular2/src/facade/lang';
|
||||
import {KEY_SPACE} from 'angular2_material/src/core/constants'
|
||||
import {KeyboardEvent} from 'angular2/src/facade/browser';
|
||||
import {NumberWrapper} from 'angular2/src/facade/lang';
|
||||
|
||||
@Component({
|
||||
selector: 'md-checkbox',
|
||||
@ -34,12 +35,12 @@ export class MdCheckbox {
|
||||
role: string;
|
||||
|
||||
/** Setter for tabindex */
|
||||
tabindex: any;
|
||||
tabindex: number;
|
||||
|
||||
constructor(@Attribute('tabindex') tabindex: string) {
|
||||
this.role = 'checkbox';
|
||||
this.checked = false;
|
||||
this.tabindex = isPresent(tabindex) ? tabindex : '0';
|
||||
this.tabindex = isPresent(tabindex) ? NumberWrapper.parseInt(tabindex, 10) : 0;
|
||||
}
|
||||
|
||||
get disabled() {
|
||||
|
Reference in New Issue
Block a user