angularjs - ngRepeat weird behaviour -
i can not believe unable simple following object made of 2 arrays
{"m": [ "alpha", "beta", "zeta"], "f": [ "alpha", "omega" ]}
all want have nested ng-repeat following
<a class="list-group-item list-group-item-info" ng-repeat="(key,list) in vm.result"> {{key}} <a class="list-group-item" ng-repeat="name in list"> {{name}} </a> </a>
any 1 has idea why not work.
it shows key properly, fails iterate in list , hence name not shown , no errors shown in console either
thanks
bottom line of problem:
https://www.w3.org/tr/html401/struct/links.html#h-12.2.2
nested links illegal
links , anchors defined element must not nested; element must not contain other elements.
since dtd defines link element empty, link elements may not nested either.
change outer element <div>
or <span>
, works
Comments
Post a Comment