I want to do a very simple ng-model
with a select and save the data to ticket.category
, but I don't get any output inside <p>
The options appear on the select but the selected option doesnt show on the paragraph
What am I doing wrong?
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.5/angular.min.js"></script>
<select id="category-select" name="category">
<option ng-repeat="category in categories"
value="{{category.TICKET_CATEGORY_DESCRIPTION}}"
ng-model="ticket.category" required>
{{category.TICKET_CATEGORY_DESCRIPTION}}
</option>
</select>
<p>Hi {{ticket.category}}</p>