diff --git a/src/components/select/select.ts b/src/components/select/select.ts index 4b584484b0..600b9216ea 100644 --- a/src/components/select/select.ts +++ b/src/components/select/select.ts @@ -119,7 +119,7 @@ export const SELECT_VALUE_ACCESSOR = new Provider( selector: 'ion-select', template: `
{{placeholder}}
-
{{_text}}
+
{{selectedText || _text}}
@@ -184,6 +184,11 @@ export class Select implements AfterContentInit, ControlValueAccessor, OnDestroy * @input {string} The interface the select should use: `action-sheet` or `alert`. Default: `alert`. */ @Input() interface: string = ''; + + /** + * @input {string} The selected text should be showen. + */ + @Input() selectedText: string = ''; /** * @output {any} Any expression you want to evaluate when the selection has changed.