drpx-transcludeTo
An Angular directives/preLinkFunction generator to create multiple transcludes paired with transcludeTo/transcludeId (like Marionette region or ui-router siblings views).
It pairs transcludes target-to
elements into target-id
elements inside templates, even when ng-if
, ng-repeat
and others are involved.
Example/How to use
Imagine that you want to write something like this:
People {{$parent.item}} Add
With transcludeTo you should write myCustomList
directive as follows:
app;
And the myCustomList.html
template can be as follows:
Default Header
Install
$ bower install --save drpx-transcludeto
add to your module the dependence:
angular;
include the javascript library in your application: