Skip to content
This repository was archived by the owner on Feb 18, 2024. It is now read-only.

Fix use with md-virtual-repeat (and other directives that recycle rep…#475

Open
jayellsbrg wants to merge 1 commit intodaniel-nagy:masterfrom
jayellsbrg:master
Open

Fix use with md-virtual-repeat (and other directives that recycle rep…#475
jayellsbrg wants to merge 1 commit intodaniel-nagy:masterfrom
jayellsbrg:master

Conversation

@jayellsbrg
Copy link

@jayellsbrg jayellsbrg commented Sep 13, 2016

…eated items): update self.id before each access.

Since md-virtual-repeat recycles elements, the model will update, but not create a new element, so postLink, and consequently, reassignment of self.id, would not run again.

  • Also remove use of $parse. The model and items that are being accessed have already been parsed, but more importantly, md-virtual-repeat scrolling lagged/froze up when running the parse function every time.

…eated items): update `self.id` before each access.

- Also remove use of $parse. The model and items that are being accessed have already been parsed, but more importantly, md-virtual-repeat scrolling lagged/froze up when running the parse function every time.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant