這裏選擇框NG-的變化選項卡是我的代碼基於NG-選項,選擇國家,並獲得標籤基於NG-重複:我怎麼可以顯示基於使用angularjs
<select ng-model="country" ng-options= "countryName.country for countryName in countryNames" ng-change="getCountry()">
</select>
<ul id="configPhoneTab" class="nav nav-tabs equipmentTab agenttabs">
<li class="active" ng-repeat= "configTab in config" val="configTab[0]">
<a href="#" data-toggle="tab">{{configTab.tabs}}</a>
</li>
</ul>
我的選項卡中json文件是
[
{
"country": "India",
"tabs": [
{
"title": "India Number",
"type": [
"VOICE",
"FAX",
"VN"
],
"carrier": "L3",
},
{
"title": "Toll Free",
"type": [
"TF"
],
"carrier": "L3",
}
]
},
{
"country": "Aus",
"tabs": [
{
"title": "Aus Number",
"type": [
"VOICE",
"FAX",
"VN"
],
"carrier": "L3",
},
{
"title": "Toll Free",
"type": [
"TF"
],
"carrier": "L3",
}
]
}
如何根據國家選擇從json中檢索標籤標題?
你的標籤與國家有什麼關係? – Terry