#Setting a Default Value for Select Elements in AngularJS

Elliot Forbes · Apr 15, 2017 · 1 min read

This is just a quick code snippet for those of you facing this slight problem when developing your applications using AngularJS 1.5. This works for those of you

<select ng-model="selection" ng-init="selection ='The First Default Option'">
  <option>The First Default Option</option>
  <option>The Second non-default option</option>
</select>

Share this article