hi
try this:
if you don't use controllerAs so
replace vm.actionSheet to $scope. actionSheet
and call the fund from your view
vm.actionSheet = function() {
var Sheet = $ionicActionSheet.show({
buttons: [
{ text: 'btn1' },
{ text: 'btn2 },
{ text: 'btn3' }
],
titleText: 'btns,
cancelText: 'close',
cancel: function() {
// add cancel code..
},
buttonClicked: function(index) {
// btns clicked code..
return true;
}
});
};
if still you having a problem please
copy you're code here or open codepan