Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

ngRepeat shows too many elements during a substitution #3917

Closed
mgol opened this issue Sep 7, 2013 · 2 comments
Closed

ngRepeat shows too many elements during a substitution #3917

mgol opened this issue Sep 7, 2013 · 2 comments

Comments

@mgol
Copy link
Member

mgol commented Sep 7, 2013

I have an ngRepeat over the $scope.ranges[world] object that defines tabs (the lower, smaller ones in the video) where:

$scope.ranges = {
    front: [
        {name: 'items', url: '/library/'},
    ],
    search: [
        {name: 'items', url: '/library/'},
        {name: 'collections', url: '/library/'},
    ],
    user: [
        {name: 'items', url: '/my-library/' },
        {name: 'notes', url: '/my-library/' },
    ],
};

When I switch the large tabs and - subsequently - the world variable changes, I get a flashy effect where for a moment (depending on $digest time) I see both previous and next $scope.ranges[world] collections, causing an ugly effect of showing too many tabs.

You can see that it depends on $digest time as the effect lasts much longer when switching to the second tab which has a much larger scope. The third tab hardly contains any data but the effect is still noticeable even on a fast machine.

See the linked video, the effect is very noticeable: http://www.youtube.com/watch?v=BY2igj_LbJ4

@mgol
Copy link
Member Author

mgol commented Sep 7, 2013

Seems to be a dupe of #3613

@mgol
Copy link
Member Author

mgol commented Sep 9, 2013

It works fine on current master. I'm closing this.

@mgol mgol closed this as completed Sep 9, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant