-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
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
Loop a collection #34
Comments
@dearamy I am not sure do I understand your question. Maybe you want this: create two files inside directorywhere is your .json input fie for the kitchen. Both files with the same name but different extension: tabs.html inside tabs.html put:
Now, in your .json input file, in some page, add component:
|
Exactly what I want! thank you~~~~~~~~~ |
(assiming you are using blaze, not react) And you can add code to tabs.js if you need it:
|
@perak and can I still use the "items" to build the route? |
Did you mean to build link to route (you are creating menu?). Yes you can, inside "each" block |
(and your routeshould be defined to use argument) |
See |
Is there any way that I can loop a collection to build some UI text like tabs?
The text was updated successfully, but these errors were encountered: