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

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -