diff --git a/ionic/components/select/select.ts b/ionic/components/select/select.ts index 55215ca341..c2fd40ed4b 100644 --- a/ionic/components/select/select.ts +++ b/ionic/components/select/select.ts @@ -1,4 +1,4 @@ -import {Component, Directive, Optional, ElementRef, Input, Renderer, HostListener, ContentChild, ContentChildren} from 'angular2/core'; +import {Component, Directive, Optional, ElementRef, Input, Renderer, HostListener, ContentChild, ContentChildren, QueryList} from 'angular2/core'; import {NgControl} from 'angular2/common'; import {Alert} from '../alert/alert'; @@ -94,7 +94,7 @@ import {Option} from '../option/option'; host: { 'class': 'item', 'tappable': '', - 'tabindex': 0, + 'tabindex': '0', '[attr.aria-disabled]': 'disabled' }, template: @@ -108,32 +108,35 @@ import {Option} from '../option/option'; '' }) export class Select { - @Input() public cancelText: string = 'Cancel'; - @Input() public okText: string = 'OK'; - @Input() public value: string = ''; - @Input() public alertOptions: any = {}; - @Input() public checked: any = false; + private selectedText: string = ''; + private labelId: string; + + @Input() cancelText: string = 'Cancel'; + @Input() okText: string = 'OK'; + @Input() value: string = ''; + @Input() alertOptions: any = {}; + @Input() checked: any = false; @Input() disabled: boolean = false; @Input() id: string = ''; @Input() multiple: string = ''; + @ContentChild(Label) label: Label; - @ContentChildren(Option) options; + @ContentChildren(Option) options: QueryList