リピータに値が存在しない場合、この選択は初期化されません。リピータの値と異なる値を表示することは可能ですか?なお、この -ng-initがng-initで正しく動作しない
<input type="text" ng-model="somethingHere2"/>
Select:
<select ng-init="somethingHere2 = options.default"
ng-model="somethingHere2"
ng-options="items for items in options.values">
</select>
$scope.workItem = 100;
$scope.options = {
default:$scope.workItem,
values:[1,2,3,4,5]
};
$scope.serviceValues = Service; // Service = .factory('Service',...)
いいえ、そうではありません - なぜ値をリピータに追加しないのですか? – tymeJV
私はこれを行います – que1326
'ng-model =" options.default "' –