配列の合計数に1のリストを持つselect要素を作成しようとしています。どのようにng-options式を構造化して、必要な番号を私に与えるか?私はそれが私の選択のようなドロップダウン値(配列数の範囲)を取得する方法は?
<select>
<option value="1">1</option>
...
<option value="array length">array length</option>
</select>
JSコードを作成するためにはNG-オプション式に配置する必要が何をすべきか
<select ng-model="page" ng-options="???"></select>
:
$scope.arrayName=
{
"ABC": [{
"id": "a33e777fdc444222bfa7fab2baec17a0",
"name": "music & store",
"isDeletionAllowed": false,
"isDeleted": false,
"isEnabled": false,
"language": "en"
}, {
"id": "9896710e6ac6454c96ec29e9a83355e4",
"name": "music class",
"isDeletionAllowed": false,
"isDeleted": false,
"isEnabled": false,
"language": "en"
}, {
"id": "b65ab7e3fdc24e23851ffb2e940ff00f",
"name": "music store",
"isDeletionAllowed": false,
"isDeleted": false,
"isEnabled": false,
"language": "en"
}, {
"id": "2a5e218ae77c4d6683ecea35266ccc24",
"name": "net & store",
"isDeletionAllowed": false,
"isDeleted": false,
"isEnabled": false,
"language": "en"
}, {
"id": "f63b1cd96abb4f42962267af43dfe935",
"name": "rock & class",
"isDeletionAllowed": false,
"isDeleted": false,
"isEnabled": false,
"language": "en"
},
"totalCount": 6
}