前端前線 2020 年 3 月 12 日

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

Use the track by section of th…

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>
End of article
0
Would love your thoughts, please comment.x
()
x