From f6fe2106e8fd7cd6f77db9156383edb9fc1d13b0 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Thu, 10 Jul 2014 17:10:49 -0700 Subject: [PATCH] feat(ngTransclude): allow ngTransclude to be used as an element --- src/ng/directive/ngTransclude.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ng/directive/ngTransclude.js b/src/ng/directive/ngTransclude.js index 642cdd294c30..9f0aa58c5e0b 100644 --- a/src/ng/directive/ngTransclude.js +++ b/src/ng/directive/ngTransclude.js @@ -3,7 +3,7 @@ /** * @ngdoc directive * @name ngTransclude - * @restrict AC + * @restrict EAC * * @description * Directive that marks the insertion point for the transcluded DOM of the nearest parent directive that uses transclusion. @@ -24,7 +24,7 @@ scope: { title:'@' }, template: '
' + '
{{title}}
' + - '
' + + '' + '
' }; }) @@ -55,6 +55,7 @@ * */ var ngTranscludeDirective = ngDirective({ + restrict: 'EAC', link: function($scope, $element, $attrs, controller, $transclude) { if (!$transclude) { throw minErr('ngTransclude')('orphan',