[Angular] set the default ‘select’ ng-model to an object

Use the track by section of the directive declaration

<select name="type" ng-options="type.name for type in typeList track by type.name">
    <option value="">-- Choose Type --</option>
<select>
0
0 Comments
Inline Feedbacks
View all comments