I have an integer field in db, which is option field. I'm saving the options in terms of id in to the db, but I also have to display the value in that field pertaining to certain operations. Can anyone here please tell me how to get a text value from an int field and display it? Below is my code:
Html:
<th col width="55%"><label><strong>Risk Estimation</strong></label>
<select ng-model="arform.risk_estimate"
ng-options="item for item in risk_estimate">
<option style="display:none" value=" risk_estimate.text"></option>
</select>
</th>
Controller:
{{ngapp}}.controller(
"SiVerifyAddReviewController",
function($scope, $http, $modalInstance, r_header){
$scope.risk_estimate = ['High','Medium', 'Low'];};
Will be able to provide if further part of code is required for understanding. Thanks.