angularjs - How to use a angular value into ng-repeat -
i have added code here. want use {{gname}}
in ng-repeat
. what's proper syntax this?
<div class="groupvalues" ng-repeat="gname in groupname"> {{gname}} <div class="subvalues" ng-repeat="gvalues in groupvalues['{{gname}}']"> {{gvalues}} </div>
you can try :
<div class="groupvalues" ng-repeat="gname in groupname"> {{gname}} <div class="subvalues" ng-repeat="gvalues in groupvalues[gname]"> {{gvalues}} </div> </div>
Comments
Post a Comment