Why pseudo-elements are not working well with ng-repeat?

439 views Asked by At

I have the ng-repeat directive on my div <div ng-repeat="tab in tabs" class="test"></div>

In my css I have this:

.test {margin-right:1%}
.test:nth-child(4n) {margin-right:0}

The nth-child(4n) is not working with my ng-repeat but if I manually put my div without the ng-repeat it works like a charm. (It's the same with all nth-child combination.

So what did I miss ?

EDIT: My case concerns the use of the ng-repeat combine with nth-child pseudo-element

Thank you in advance.

EDIT 2 This post is old but the problem as the last comment say, is that there is some ng-show.. It was obvious, no excuses.

0

There are 0 answers