On-double-tap More Than Double

Is there a way to make a button that you have to click x times for it to trigger a function? For example, in the Android settings menu, if you tap Build Number seven times it enables dev mode. Is there a way of creating something similar in Ionic? Potentially using something like on-double-tap or on-tap?

.controller(‘CtrlFunction’, function() {

var x=1;

$scope.btnClick = function()
{
x += 1;
if ( x == 8) TriggerFunction();
}

TriggerFunction()
{
}

})

1 Like