Skip to content

Conversation

btbinhtran
Copy link
Contributor

I'm going through all the guides again and improving their logical layout, grammar, spelling, etc ...
Still a work in progress, so don't merge just yet.

For the expression guide,

I'm confused on how the buffer works on one of the example expressions:

<div data-list="user in users [buffer: 2, max: 10]"></div>

What would be an example of the outputted HTML?

@lancejpollard
Copy link
Member

Sounds good. Feel free to change content as well if you want.

@lancejpollard
Copy link
Member

That buffer example isn't really relevant for the directives/expressions guide, you can remove that. What we are thinking is that the list element/directive should handle buffering, so if you have thousands/millions of list items, but only 10 are visible, and you scroll, you may want to actually have 12 DOM elements (buffer: 2), so you can recycle DOM elements (only creating 12 instead of thousands), but have a few spare elements to improve perceived performance. More of a list element thing than anything specific to directives/expressions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants