안녕하세요, 여러 ng-repeat가 중첩되어있는 상황이 있습니다.
<form ng-repeat="pt in prolist">
Frequency <input type="checkbox" ng-model="pt.req" />
<div ng-repeat="disc in prolist">
------
</div>
</form>
내가하려는 것은 이런 것입니다
<div ng-repeat="disc in prolist" where pt.id =disc.Pt_id>
이 코드 줄을 angularjs로 작성하는 방법을 알려주세요. 감사합니다.
기본적으로 "where ..."를 필터 파이프로 전환합니다. http://docs.angularjs.org/api/ng/filter/filter
예 :
ng-repeat="disc in prolist | filter:{Pt_id: pt.id}" ...
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다