I've already seen this post with the same subject: Dynamically add directive in AngularJS
but I'm not enough familiar with angular to use this solution in my case.
In my case I'm trying to dynamically add a directive (based on an outer html) to a div after button-clicked:
<div class="charges" id="charges">
<my-headcharges></my-headCharges>
<my-charges></my-charges>
</div>
Nou can see my div with two directives which I created and placed under the div hard-coded. Now I want to add the same directives, but many times and after a button-clicked.
thanks :)