When injecting $ionicModal or $ionicLoading, the controller crashes. Without them evrything works fine. I know that a similar problem was posted here ( Cannot load any $ionicModal or $ionicLoading ), but I assume that I correctly specified the dependencies.
What could have caused this problem? Or any idea for a dirty workaround?
var controllers = angular.module('controllers', ['ionic']);
controllers.controller('UtilityController', ['$scope', '$ionicSideMenuDelegate', /*'$ionicModal'*/, function($scope, $ionicSideMenuDelegate, /*$ionicModal*/){
$scope.toggleSideMenu = function() {
$ionicSideMenuDelegate.toggleLeft();
};
}])