real-time search using filters && ng-hide/ng-show && ng-click event

This commit is contained in:
2017-01-31 22:12:36 -08:00
parent 31310b60ea
commit bbd5d3d5db
2 changed files with 17 additions and 3 deletions

View File

@@ -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 = [