Weird problem, using Angular UI bootstrap modal I have no issues at all with Angular 1.3 beta 16, however if I enable ng-strict-di mode I get the following error:
You need to manually advertise your dependencies for the controller since you have ng-strict-di enabled.
function ModalInstanceCtrl ($scope, $modalInstance) { //or var ModalInstanceCtrl = function(...
$scope.ok = function () {
$modalInstance.close(true);
};
$scope.cancel = function () {
$modalInstance.dismiss(false);
};
};
ModalInstanceCtrl.$inject = ['$scope', '$modalInstance'];