Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save hahalin/5206a13dfc6fa6ace927 to your computer and use it in GitHub Desktop.

Select an option

Save hahalin/5206a13dfc6fa6ace927 to your computer and use it in GitHub Desktop.

Revisions

  1. hahalin created this gist Mar 6, 2016.
    5 changes: 5 additions & 0 deletions aspnetmvc-view-ng-select-default-value.cshtml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    <select ng-model="selectedCompany"
    ng-init="selectedCompany='2'"
    class="form-control" ng-options="c.id as c.nm for c in companies ">
    </select>