Angular ui-select: How to bind only selected value to ng-model

后端 未结 4 2274
借酒劲吻你
借酒劲吻你 2021-02-19 18:43
$scope.property = new Property();
$scope.property.propertyType = {};

$scope.propertyTypes = [
    { value: \'ResidentialPlot\', name: \'Residential Plot\' },
    { valu         


        
4条回答
  •  说谎
    说谎 (楼主)
    2021-02-19 19:09

    You can use the select as notation:

    repeat="propType as propType.value for propType in propertyTypes"
    

提交回复
热议问题