# Ionic select: selected option not showing (selecting)

**URL:** <https://forum.ionicframework.com/t/ionic-select-selected-option-not-showing-selecting/14627>\
**Category:** uncategorized\
**Created:** [December 23, 2014, 2:18pm UTC](https://forum.ionicframework.com/t/ionic-select-selected-option-not-showing-selecting/14627 "2014-12-23T14:18:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mdundek](https://avatars.discourse-cdn.com/v4/letter/m/d2c977/32.png) [@mdundek](https://forum.ionicframework.com/u/mdundek)\
**Post date:** [December 23, 2014, 2:18pm UTC](https://forum.ionicframework.com/t/ionic-select-selected-option-not-showing-selecting/14627/1 "2014-12-23T14:18:05Z")

</div>

Hi everyone,

I can’t seem to get the select control working properly for some strange reason. This is what I do:

```
$scope.searchStaticBilled = [
	                      		{
	                      	        name: 'All'
	                      		},
	                      		{
	                      	        name: 'Unbilled'
	                      		},
	                      		{
	                      	        name: 'Billed'
	                      		}
	];
	$scope.searchData = {
							title: '', 
							billed: $scope.searchStaticBilled[0]
	};

```

Then in the template:

```
<select ng-model="searchData.billed" ng-options="billedStatic.name for billedStatic in searchStaticBilled"></select>

```

The select does not preselect the first option, and just selects nothing instead. Am I missing something?

 ![image](https://global.discourse-cdn.com/ionicframework/original/2X/b/be8e62cac79e2917f1298684bb3f6dc4dcc3ea0c.png)

Michael

---

<div class="post-metadata">

**Author:** ![brandyshea](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/brandyshea/32/148286_2.png) [@brandyshea](https://forum.ionicframework.com/u/brandyshea)\
**Post date:** [December 23, 2014, 2:30pm UTC](https://forum.ionicframework.com/t/ionic-select-selected-option-not-showing-selecting/14627/2 "2014-12-23T14:30:19Z")

</div>

Can you reproduce this in a codepen? I quickly threw your code into this [codepen](http://codepen.io/anon/pen/qEabLE) and it is selecting “All”.

---

<div class="post-metadata">

**Author:** ![mdundek](https://avatars.discourse-cdn.com/v4/letter/m/d2c977/32.png) [@mdundek](https://forum.ionicframework.com/u/mdundek)\
**Post date:** [December 23, 2014, 8:52pm UTC](https://forum.ionicframework.com/t/ionic-select-selected-option-not-showing-selecting/14627/3 "2014-12-23T20:52:37Z")

</div>

Indeed, your codepen works as expected, but for some reason it doesn’t in my case. It looks like there is an extra empty option all the way on the top that is selected by default:

 ![image](https://global.discourse-cdn.com/ionicframework/original/2X/2/267c1d864ae30730d5b6af25131d5bd0c9633a87.png)

I should also mention that all of this happens in a Modal, could that have an impact of some sort?

Michael

---

<div class="post-metadata">

**Author:** ![brandyshea](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/brandyshea/32/148286_2.png) [@brandyshea](https://forum.ionicframework.com/u/brandyshea)\
**Post date:** [December 23, 2014, 9:06pm UTC](https://forum.ionicframework.com/t/ionic-select-selected-option-not-showing-selecting/14627/4 "2014-12-23T21:06:53Z")

</div>

Hmm maybe if there is something going on with the way you declare the modal. Here is a new codepen where it is in a modal: [http://codepen.io/anon/pen/dPpXaa](http://codepen.io/anon/pen/dPpXaa)

Which version of Ionic are you using? This is pointing to the nightly build.
