From 065edeccaf5bb69bd2aa48ba5a3c73da49dcf127 Mon Sep 17 00:00:00 2001 From: Pawel Kozlowski Date: Mon, 31 Dec 2012 20:57:48 +0100 Subject: [PATCH] fix(modal): directive can't be invoked as class now Closes #26 --- src/modal/modal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modal/modal.js b/src/modal/modal.js index 8d0aeb6483..cd65b68e85 100644 --- a/src/modal/modal.js +++ b/src/modal/modal.js @@ -6,7 +6,7 @@ angular.module('ui.bootstrap.modal', []).directive('modal', ['$parse',function($ escape: true }; return { - restrict: 'ECA', + restrict: 'EA', link: function(scope, elm, attrs) { var opts = angular.extend(defaultOpts, scope.$eval(attrs.uiOptions || attrs.bsOptions || attrs.options)); var shownExpr = attrs.modal || attrs.show;