I would like to 'data bind' the default value of a html/jade select. Here is my select:
select#title.form-control(ng-model='newClient.title')
option(ng-repeat='title in titles', ng-selected='$first') {{title}}
The problem here is that if I don't touch the select, my newClient.title will be set as undefined and not the first title value. How can I do that without setting a default value in my controller?
ng-selected="newClient.titles[0]"optionelements - why are you not usingng-options?