diff --git a/src/dialog/dialog.js b/src/dialog/dialog.js index a8a24374a4..652fcc56f5 100644 --- a/src/dialog/dialog.js +++ b/src/dialog/dialog.js @@ -122,7 +122,7 @@ dialogModule.provider("$dialog", function(){ self.modalEl.contents().data('ngControllerController', ctrl); } - $compile(self.modalEl.contents())($scope); + $compile(self.modalEl)($scope); self._addElementsToDom(); // trigger tranisitions