I have the exact same problem as mentioned here: How to have a default option in Angular.js select box
However none of the answers fix my issue below, I'm trying to get the first category to show up inside of the select:
<p>Choose a tag category:</p>
<div class="select-style">
<select ng-model="modal.addedTag" ng-init="modal.addedTag = modal.categories[0].name" ng-options="category.name for category in modal.categories">
<!-- <option value="brand" selected>Brand</option>
<option value="client">Client</option>
<option value="company-name">Company Name</option>
<option value="government">Government</option>
<option value="events">Events</option>
<option value="industry">Industry</option>
<option value="products">Products</option>
<option value="news">News</option> -->
</select>
</div>
Model in my Controller:
var vm = this;
vm.categories = [
{ name: 'brand' },
{ name: 'client' },
{ name: 'competitor-name' },
{ name: 'company-name' },
{ name: 'government' },
{ name: 'events' },
{ name: 'industry' },
{ name: 'people' },
{ name: 'philanthropic' },
{ name: 'products' },
{ name: 'product-category' },
{ name: 'product-feature' },
{ name: 'place' },
{ name: 'problem' },
{ name: 'news' },
{ name: 'related-company-name' },
{ name: 'trend' }
];