The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Transclusion Basics

Transclusion Basics

2:48
Uh oh. **Transclusion**? What the heck? It's a big word, but it is actually a very simple concept. In this episode John shows you how transclusion is used in your AngularJS directives...
Watch this lesson now
Avatar
egghead.io

Uh oh. Transclusion? What the heck? It's a big word, but it is actually a very simple concept. In this episode John shows you how transclusion is used in your AngularJS directives...

Avatar
yiling

In Angular 1.3.15, we have two options for the transclusion behaviour quote from angularjs doc:

  • true - transclude the content (i.e. the child nodes) of the directive's element.
  • 'element' - transclude the whole of the directive's element including any directives on this element that defined at a lower priority than this directive. When used, the template property is ignored.
HEY, QUICK QUESTION!
Joel's Head
Why are we asking?