JSFiddle - React, Tailwind, and code Playground
HTML
<div ng-app="myApp" ng-controller="MyController">
<select ng-model="property" ng-options="prop.name as prop.name for prop in params.properties" ng-change="query.property_name=property.name">
<option value="">-select property-</option>
</select>
</div>
JavaScript
var myApp = angular.module('myApp', []);
myApp.controller('MyController', function ($scope) {
$scope.params = {
milestones: [ "a", "b", "c", "d" ],
properties: [
{ "name": "name A", type: "text" },
{ "name": "name B", type: "checkbox" }
]
};
$scope.property = "name A";
});