I'm currently facing an issue with populating data from a database onto a web page. Despite my efforts, I haven't been able to get it to work as intended:
<div ng-controller="AnalyzerController">
<select id="Listbox" ng-model="Listofoptions" style="width: 500px">
<option ng-repeat="option in options" value="{{option}}"> {{option}} </option>
</select>
</td>
</div>
Below is the JavaScript code for the controller:
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.7/angular.min.js"
type="text/javascript"></script>
<script>
var analyzer=angular.module('analyzer',[]);
analyzer.controller('AnalyzerController',function($scope )
{
$scope.options = ["A","B","C","D","E"];
}
</script>
The issue I'm experiencing is that the select box is displaying {{options}}
instead of the actual values.