2014-03-14 38 views
0

我需要使用選項添加來自角度文件的數據。將數據添加到<option>標記中angular JS

這是腳本文件

$http.get(url).success(function (data) { 
      $scope.List1Details= data.List1Details; 
      $scope.HeaderName= data.HeaderName; 
     }); 

在查看

<select class="selection_light select_full_width" id="selectedTag1ID{{$index}}" ng-change="ChangeConfirmBtn($index)" ng-model="PendingEmployee.SelectedTag1ID" ng-options="Tag1.Id as Tag1.Name for Tag1 in List1Details"> 
<option value="" selected>Choose {{HeaderName}} </option> 
</select> 

但它顯示爲

選擇{{HeaderName}}

其節目升當我在IE中呈現它時,請將其加入。它可以在Chrome和Firefox上正常工作

我該如何解決這個問題?

+0

看起來沒問題,如果你可以提供一個潛水員,我們可以幫助你更好...... –

回答

0

我推薦你用第一個選項連接你的數組,我知道角度不像選項標籤。

相關問題