mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-24 03:55:49 +08:00
fix($compile): render nested transclusion at the root of a template
Closes #8914 Closes #8925
This commit is contained in:
@@ -847,6 +847,10 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
|
||||
? JQLitePrototype.clone.call($compileNodes) // IMPORTANT!!!
|
||||
: $compileNodes;
|
||||
|
||||
if ( $linkNode.length === 0 && parentBoundTranscludeFn ) {
|
||||
$linkNode = parentBoundTranscludeFn(scope);
|
||||
}
|
||||
|
||||
forEach(transcludeControllers, function(instance, name) {
|
||||
$linkNode.data('$' + name + 'Controller', instance);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user