by hmottestad · 12y ago · 0 comments
Another performance trick.
If you use ng-hide/show to hide a long list, then make a dummy function that takes the list and the variable for the ng-hide/show and only returns the list when the ng-show is true. This way you don't spend valuable time rendering something that will have css hidden.
For example if you have a list of objects where some particular action might apply only to a portion of them.