Transclusion Basics

John Lindquist
InstructorJohn Lindquist

Share this video with your friends

Send Tweet

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...

yiling
yiling
~ 6 years ago

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.