[angularjs] What is ng-transclude?


it's a kind of yield, everything from the element.html() gets rendered there but the directive attributes still visible in the certain scope.


I have seen a number of questions on discussing ng-transclude, but none explaining in layman's terms what it is.

The description in the documentation is as follows:

Directive that marks the insertion point for the transcluded DOM of the nearest parent directive that uses transclusion.

This is fairly confusing. Would someone be able to explain in simple terms what ng-transclude is intended to do and where it might be used?