Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/406.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 使用ng options在select下拉列表中将值类型前置到选项元素的值_Javascript_Angularjs - Fatal编程技术网

Javascript 使用ng options在select下拉列表中将值类型前置到选项元素的值

Javascript 使用ng options在select下拉列表中将值类型前置到选项元素的值,javascript,angularjs,Javascript,Angularjs,HTML的功能如下所示: <select id="frontend-select" ng-model="tech.backEndValue" ng-options="item.value as (item.name | translate) for item in techBackend"> </select> 其输出为: <select ng-model="tech.backEndValue" ng-options="item.value as (

HTML的功能如下所示:

<select id="frontend-select" ng-model="tech.backEndValue" 
    ng-options="item.value as (item.name | translate) for item in techBackend">
</select>

其输出为:

<select ng-model="tech.backEndValue" ng-options="item.value as (item.name | translate) for item in techBackend">
    <option value="string:JAVA" label="Java" selected="selected">Java</option
    <option value="string:PHP" label="PHP">PHP</option>
</select>


你能解决这个问题吗?我有同样的problem@brunocascio你解决了这个问题吗?