Skip to content

Commit e0cf7c5

Browse files
Revert "fix($compile): render nested transclusion at the root of a template"
This reverts commit 466320f.
1 parent 466320f commit e0cf7c5

File tree

2 files changed

+0
-35
lines changed

2 files changed

+0
-35
lines changed

src/ng/compile.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -847,10 +847,6 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
847847
? JQLitePrototype.clone.call($compileNodes) // IMPORTANT!!!
848848
: $compileNodes;
849849

850-
if ( $linkNode.length === 0 && parentBoundTranscludeFn ) {
851-
$linkNode = parentBoundTranscludeFn(scope);
852-
}
853-
854850
forEach(transcludeControllers, function(instance, name) {
855851
$linkNode.data('$' + name + 'Controller', instance);
856852
});

test/ng/compileSpec.js

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -4097,37 +4097,6 @@ describe('$compile', function() {
40974097
});
40984098

40994099

4100-
describe('collocated nested transcludes', function() {
4101-
4102-
beforeEach(module(function($compileProvider) {
4103-
4104-
$compileProvider.directive('inner', valueFn({
4105-
restrict: 'E',
4106-
transclude: true,
4107-
template: '<u ng-transclude></u>'
4108-
}));
4109-
4110-
$compileProvider.directive('outer', valueFn({
4111-
restrict: 'E',
4112-
transclude: true,
4113-
template: '<a href="#"><inner ng-transclude></inner></a>'
4114-
}));
4115-
4116-
}));
4117-
4118-
4119-
// Issue #8914
4120-
it('should render nested transclusion at the root of a template', inject(function($compile, $rootScope) {
4121-
4122-
element = $compile('<div><outer>transcluded content</outer></div>')($rootScope);
4123-
$rootScope.$digest();
4124-
expect(element.text()).toEqual('transcluded content');
4125-
4126-
}));
4127-
4128-
});
4129-
4130-
41314100
describe('nested transcludes', function() {
41324101

41334102
beforeEach(module(function($compileProvider) {

0 commit comments

Comments
 (0)