revert: "fix($compile): render nested transclusion at the root of a template"

This reverts commit 9d9cdfb575.

This commit was causing breakages because of its assumption that transcluded
content would be handled predictably, i.e. with ngTransclude, whereas many
use cases involve manipulating transcluded content in linking functions.
This commit is contained in:
Jeff Cross
2014-09-09 11:08:05 -07:00
parent b39e1d47b9
commit 2d8749e8c9
2 changed files with 0 additions and 33 deletions

View File

@@ -4097,35 +4097,6 @@ describe('$compile', function() {
});
describe('collocated nested transcludes', function() {
beforeEach(module(function($compileProvider) {
$compileProvider.directive('inner', valueFn({
transclude: true,
template: '<div ng-transclude></div>'
}));
$compileProvider.directive('outer', valueFn({
transclude: true,
template: '<a href="#"><div inner ng-transclude></div></a>'
}));
}));
// Issue #8914
it('should render nested transclusion at the root of a template', inject(function($compile, $rootScope) {
element = $compile('<div><div outer>transcluded content</div></div>')($rootScope);
$rootScope.$digest();
expect(element.text()).toEqual('transcluded content');
}));
});
describe('nested transcludes', function() {
beforeEach(module(function($compileProvider) {