Hi,
Thank you for replying but I'm still running into some issues.
So this is the controller:
.controller('OptimusCtrl', ['$scope', 'Players', 'LineUp', function($scope, Players, LineUp, $ionicActionSheet) {
Players.all(function(data){
$scope.allPlayers = $scope.assignLocked(data.data.results);
})
$scope.assignLocked = function(array){
$.each(array,function(key,value){
value.locked = false;
})
return array;
},
$scope.show = function() {
var hideSheet = $ionicActionSheet.show({
buttons: [
{ text: 'Share This' },
{ text: 'Move' }
],
destructiveText: 'Delete',
titleText: 'Modify your album',
cancelText: 'Cancel',
cancel: function() {
// add cancel code..
},
buttonClicked: function(index) {
return true;
}
});
}
}])Then I call show() with ng-click in the view. So I don't think I am doing anything crazy here, it's all pretty standard. But for some reason its still not working.