add transclusion to modal directive by default

This commit is contained in:
Rafael Schouten
2014-10-01 18:47:22 +10:00
parent 206c8da0ba
commit 54b138b2cc

View File

@@ -0,0 +1,9 @@
Darkswarm.directive "enterpriseModal", ($modal)->
restrict: 'E'
replace: true
template: "<a ng-transclude></a>"
transclude: true
link: (scope, elem, attrs, ctrl)->
elem.on "click", (ev)=>
ev.stopPropagation()
scope.modalInstance = $modal.open(controller: ctrl, templateUrl: 'enterprise_modal.html', scope: scope)