mirror of
https://github.com/Raghu-Ch/TurtleFactsQuiz.git
synced 2026-02-10 11:33:01 -05:00
real-time search using filters && ng-hide/ng-show && ng-click event
This commit is contained in:
@@ -10,12 +10,19 @@
|
||||
|
||||
vm.data = turtlesData;
|
||||
vm.activeTurtle = {}; // will be used in the view to hold the data of currently active turtle
|
||||
|
||||
vm.search = ""; // Adding the Search property to be used in the ng-model
|
||||
vm.quizActive = false;
|
||||
vm.changeActiveTurtle = changeActiveTurtle;
|
||||
vm.activateQuiz = activateQuiz;
|
||||
|
||||
function changeActiveTurtle (index) {
|
||||
vm.activeTurtle = index;
|
||||
}
|
||||
|
||||
function activateQuiz () {
|
||||
vm.quizActive = true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
var turtlesData = [
|
||||
|
||||
Reference in New Issue
Block a user