Invoke modal from action sheet


#1

Has anyone got this to work? Im trying to invoke a modal from an action sheet.


#2

Hi. I had similar problem and solved it from the following link:

buttonClicked: function(index) {
if(index === 0){
$scope.firstModal();
}
else if(index === 1){
$scope.secondModal();
}

   return true;

}


#3

Thanks for the reply. What would firstModal() and secondModal() look like? Im basically defining an action sheet and modal in the same controller. I know how to call functions from the action sheet but I get an undefined error so Im assuming Im defining things incorrectly.