我有一个可以编辑的模式。但在我的模式中,我无法预先选择。
这是我的 HTML
<select ng-model='names.productionType' ng-options="data for data in productionType"></select>
这是我的脚本
$scope.productionType =[
"Article LP Composition",
"Normal LP Composition",
"Reading Material",
"Transcribed Manuscript",
"LP Production"
];
到目前为止,这是我尝试过的
HTML
<select ng-model='editable.productionType' ng-options="data for data in productionType" ng-selected="editable.productionType='{{names.production_type}}'"></select>
在我的脚本中
$scope.names.productionType = "Normal LP Composition";
它将预先选择,但问题是我无法选择其他选项