user3052526 user3052526 - 1 year ago 62
AngularJS Question

ngRepeat weird behaviour

I can not believe that i am unable to do the simple following object made up of two arrays


All i want to do is have a nested ng-repeat like the following

class="list-group-item list-group-item-info"
ng-repeat="(key,list) in vm.result">


ng-repeat="name in list">

any one has any idea why it does not work.

It shows the key properly, but fails to iterate in the list and hence the name is not shown and no errors are shown in the console either


Answer Source

bottom line of your problem:

nested links are illegal

Links and anchors defined by the A element must not be nested; an A element must not contain any other A elements.

Since the DTD defines the LINK element to be empty, LINK elements may not be nested either.

Change your outer element to a <div> or <span> and it works

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download