<select id="marketSelect" ng-model="market" name="marketSelect" ng-change="update()" ng-options=" market.Label group by market.FYear for market in markets" class="form-control">
</select>
The ID and label is stored in $cookieStore
. I tried to set the default by using the code in the controller
$scope.market = $cookie.get('marketID');
But it does not work, I have tried ng-init
also.