We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
See comments on #79
Q: " How do I do something different for the first or last item in a loop. For example I may want to generate:
1,2,3,4,5 (note - no comma on last item)"
A: "The easier solution than that is:
Flow.dom.converters.register('join', function(v){ return v.join(',') }); <div data-f-bind="somearray | join"> </div>
A more generic/ better solution may be to expose the array itself as a variable.
<ul data-f-foreach="somearray"> <li> <%= (index === somearray.length - 1) ? "last" : value %> </li> </ul>
The text was updated successfully, but these errors were encountered:
No branches or pull requests
See comments on #79
Q: " How do I do something different for the first or last item in a loop. For example I may want to generate:
1,2,3,4,5 (note - no comma on last item)"
A: "The easier solution than that is:
A more generic/ better solution may be to expose the array itself as a variable.
The text was updated successfully, but these errors were encountered: