I have two different examples, plunker 
1<http://plnkr.co/edit/PQXCWvB32I8J3JgBPi3P> and 
plunker 2 <http://plnkr.co/edit/AjPJQD57mDUOBGFcMkHC> (from this 
site<http://engineering.nulogy.com/posts/transclusion-in-angular/>) of 
simple directives that use the transclude linker function** to transclude 
the entire content of an element (i.e. transclude: 'element') and both 
generate the correct content when run in the browser, but both fail to 
generate anything but a comment in the Jasmine unit tests.  Also, I have a 
related 
question posted on 
StackOverflow<http://stackoverflow.com/questions/22945436/unit-testing-angular-js-with-transcluded-element-not-working>,
 
so if you have an answer and want some points, I'll be happy to "accept" 
it.  Thanks.

** Just to clarify, I mean the transclude function passed to the 
directive's link function.

> function(scope, element, attrs, ctrls, *transcludeFn*)

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to