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

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -