Garreth.P
unread,Mar 22, 2012, 1:11:39 AM3/22/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to AngularJS
Hi there,
I'd like to know if there is a way to shuffle an array before
displaying DOMElements using ng:repeat.
I'm building a quiz application, and my situation is currently:
1. I've an array of Questions, each having an array of Answers.
2. I wish to shuffle the Answers to each question before displaying
it.
3. My App is currently displaying the problems using ng:repeat for
Questions, and a nested ng:repeat for Answers.
Once again, is there a good way i can use Angular to shuffle the array
of Answers before displaying it? Perhaps using JQuery?
Thanks!