menu      DavidRodenas
Main article: drpx-transcludeto »

drpx-transcludeto: multi-transclude

May 06, 2015

Angular lets you to transclude html templates into your directives, in other words, parametrize a directive with one template. Unfortunately, angular is limited by one single translcussion. Here I present a small module that allows multiple transclussion, it allows you to create directives like lists with custom header items and footers, highly configurable dialogs, …

Tags: drpx-transcludeto, angularjs-extensions, contributions, angularjs

<list-pager list="vm.people">
    <h1 target-to="header">People</h1>
    <person-detail person="$container.item" target-to="item"></person-detail>
    <div target-to="footer">
        <button ng-click="add()">Add</button>

« Back to List