Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

feat(ngTransclude): allow ngTransclude to be used as an element #8141

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/ng/directive/ngTransclude.js
Original file line number Diff line number Diff line change
@@ -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: '<div style="border: 1px solid black;">' +
'<div style="background-color: gray">{{title}}</div>' +
'<div ng-transclude></div>' +
'<ng-transclude></ng-transclude>' +
'</div>'
};
})
@@ -55,6 +55,7 @@
*
*/
var ngTranscludeDirective = ngDirective({
restrict: 'EAC',
link: function($scope, $element, $attrs, controller, $transclude) {
if (!$transclude) {
throw minErr('ngTransclude')('orphan',