diff --git a/src/alert/alert.js b/src/alert/alert.js index 5715acca63..e5ace4a081 100644 --- a/src/alert/alert.js +++ b/src/alert/alert.js @@ -37,10 +37,10 @@ angular.module('ui.bootstrap.alert') $log.warn('AlertController is now deprecated. Use UibAlertController instead.'); } - return $controller('UibAlertController', { + angular.extend(this, $controller('UibAlertController', { $scope: $scope, $attrs: $attrs - }); + })); }]) .directive('alert', ['$log', '$alertSuppressWarning', function($log, $alertSuppressWarning) {