Reputation: 148
basically I want to know if there is any performance difference using ul instead of div when I'm using ng-repeat
Upvotes: 0
Views: 128
Reputation: 6832
You can give a look at angular source code, but $compile only apply on $element, so obviously angular does not really care about your HTML tag.
Here is the code you are looking for : https://github.com/angular/angular.js/blob/master/src/ng/directive/ngRepeat.js#L323
As you can see, no specific use of $element in this code. The question is now more oriented on browser behaviors, which is a little bit more complexe questions complexe.
Just use the one which feel more adapted for your content. Have fun.
Upvotes: 1