118
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.
Syntax:
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:
Next TopicAngularJS ng-value Directive