I have a program where users can choose from 3 options such as: Hi, Hello and Hey.
Currently, when a user selects one of the values, they receive a message saying that they need to "select a value." I am struggling to figure out how to update the ng-model value with the newly selected option so that I can save it in my database. Here is the code snippet:
<div class="dropdown">
<button class="btn btn-primary dropdown-toggle" type="button" data-toggle="dropdown" ng-model="audit.data">{{audit.data}}
<span class="caret"></span></button>
<ul class="dropdown-menu">
<li><a href="#">Hi</a></li>
<li><a href="#">Hello</a></li>
<li><a href="#">Hey</a></li>
</ul>
</div>