$ionicModal and $ionicLoading cant be injected in controller


#1

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();
            
        };
}])

#2

I tested this using 1.0.0, 1.0.1, and 1.1.0 and wasn’t able to reproduce this. Codepen: http://codepen.io/brandyshea/pen/Mwdaqp?editors=101

Do you have a code example of this happening?