Here is my running code in Plunker
- First issue I want to solve is: I want to randomly show the data. For my case, I have two questions. One is "Do you like Foo", another one is "Do you like Bar". When I reload the page, I want these questions to show up randomly. For example, maybe "Do you like Foo" show first this time. But when I reload the page, "Do you like Bar" show first.
I made a custom random filter as below, but this will cause bug that "I cannot see the check symbol when I check the checkBox"
$scope.random = function () {
return 0.5 - Math.random();
}
Another in my line 14 of my Plunker, I added <div ng-repeat="item in questions | orderBy: random">
Updated: Based on comment, I created another post for my another.