js-fiddle: https://jsfiddle.net/4z5ufbuu/
I'm trying to select a value from an array I have via a select option. here are my options:
$scope.categories = [
{ type: "Web Application", cssClass: "webApplication" },
{ type: "Unity", cssClass: "unity" },
];
$scope.filterValue = "";
I have it so the select displays the "type" but I want the "filterValue" to represent the cssClass.
I have seen this page:
https://stackoverflow.com/a/12384319/9132034
but dont really understand this answer:
obj = { '1': '1st', '2': '2nd' };
<select ng-options="k as v for (k,v) in obj"></select>
guidance would be absolutely perfect or even the solution but that is up to you :)