Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

ionicActionSheet Undefined

$
0
0

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


Viewing all articles
Browse latest Browse all 228595

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>