Transclusion: $transcludeFn

For some time I was wondering what’s that $transcludeFn passed as last argument to AngularJS directive linking function. The documentation did not allow me to fully understand it. So I’ve taken a deep dive into implementation of ng-if, ng-include and ng-repeat directives (ng module built-in functionality). And it seems to be as simple as shooting one right down.

Continue reading