Javatpoint Logo
Javatpoint Logo

AngularJS ng-transclude Directive

The AngularJS ng-transclude directive is used to mark the insertion point for the transcluded DOM of the nearest parent directive that uses transclusion.

The ng-transclude directive facilitates AngularJS to capture everything that is put inside the directive in the markup and use it somewhere in the directive's template.


Parameter explanation:

ng-transclude/ng-transclude-slot: It specifies the name of the slot to insert at this point.

Let's take an example to demonstrate the usage of ng-transclude directive.

See this example:

Test it Now

Youtube For Videos Join Our Youtube Channel: Join Now


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Trending Technologies

B.Tech / MCA