When trying to use ng-transclude inside the ng-include template, it throws an error below,
Error: [ngTransclude:orphan] Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: <ng-transclude>
I included transclude: truethe scope of the directive,
<div>
<div ng-include="template.html">
</div>
<div>
<ng-transclude></ng-transclude>
</div>
source
share