1
<select class="ui search dropdown" ng-model="vm.empresa" ng-options="item.id as item.label for item in vm.collectionData.items track by item.id" required >
<option value="">Selecione uma Empresa</option>
</select>
How do I leave the first item already selected by default?
I tested with your code, and with some variations of it but I did not get the expected result.
– Fbor
This code will only work if
vm.collectionData
is already loaded when the control initializes.– OnoSendai