ng-repeat를 사용하여 반복되는 div를 제거하려고합니다. AngularJS ng-repeat 설정 속성
<!-- I have 21 of these -->
<div class="table-row">
<span class="glyphicon glyphicon-wrench"></span>
<label>Chloride</label>
<input type="range" min="700" max="1200" ng-model="chlorideSlider"/>
<input type="text" class="val" ng-model="chloride"/>
</div>
<!-- I'd like to use ng-repeat to create them -->
<div class="table-row" ng-repeat="item in sliderItems.items">
<span class="glyphicon glyphicon-pencil"></span>
<label>{{ item.label }}</label>
<input type="range" min="item.min" max="item.max" ng-model="item.slider"/>
<input type="text" class="val" ng-model="item.model"/>
</div>
이
데이터입니다 :$scope.sliderItems = { 'items' : [
{'label' : 'WBC', 'min' : 0, 'max' : 600, 'slider' : $scope.wbc, 'model' : $scope.wbc, 'tr' : 'wbc_tr' },
{'label' : 'Respiration', 'min' : 0, 'max' : 60, 'slider' : $scope.resp, 'model' : $scope.resp, 'tr' : 'wbc_tr' }
]};
최소 및 최대 전혀 작동하지 않습니다. 모델은 변경 될 때까지 올바른 값을 표시하며 읽기 전용 값 오류를 변경하려고합니다.
? 그것의 명확하지 .. .. ( –
두 번째 div에서 일을하고 싶습니다. 그러나 위에서 언급 한대로 작동하지 않습니다. 감사합니다. –