How can you create a dropdown menu & side menu in Ionic? (choose all that apply)
Answer
Correct Answer: $scope.groups = []; for (var i=0; i<10; i++) { $scope.groups[i] = { name: i, items: [] }; for (var j=0; j<3; j++) { $scope.groups[i].items.push(i + '-' + j); } } $scope.toggleGroup = function(group) { if ($scope.isGroupShown(group)) { $scope.shownGroup = null; } else { $scope.shownGroup = group; } }; $scope.isGroupShown = function(group) { return $scope.shownGroup === group; };
Explanation:
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one