# transcluder **Repository Path**: mirrors_bvaughn/transcluder ## Basic Information - **Project Name**: transcluder - **Description**: Another Angular directive to help with multiple transclusion within a single directive - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-08 - **Last Updated**: 2026-02-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # transcluder > Another Angular directive to help with multiple transclusion within a single directive. ## Usage You can install this plugin with either [Bower](http://bower.io/) or [NPM](https://www.npmjs.org/). ### Bower ```shell bower install transcluder --save-dev ``` ### NPM ```shell npm install transcluder --save-dev ``` Then just include the *transcluder* module in your Angular application like so: ```js angular.module('myAngularApp', ['transcluder']); ``` ## Overview The transcluder directive enables more powerful and better organized directive templates. Consider the following 'foobar' directive template and its use of the transcluder: ```html

``` Assume that another component were to use the 'foobar' directive as follows: ```html

Foobar

Lorem ipsum.

``` The transcluder would automatically convert the above into the following: ```html

Foobar


Lorem ipsum.

``` Please note the parent directive must specific transclude:true flag or this directive will error. For the above example, that means the 'foobar' directive might look like this: ```js angular.module('foobar', []).directive('foobar', function() { return { templateUrl: 'path/to/foobar.html', restrict: 'E', transclude: true }; } ); ```