I am adding the following div multiple times on a page.
<div class="box span6">
<div class="box-header">
<h2 class="custom"><i class="fa-icon-group" style="opacity:.7"></i><span class="break"></span>[TEXT]</h2>
</div>
<div class="box-content">
<p><strong>[TEXT 2]</strong></p>
<ul>
<li ng-repeat = "course in courses">{{course}}</li>
</ul>
</div>
</div>
I'd like to write a directive but I don't know how to pass values to the directive.
Eg. I want to pass "name" for TEXT and "email address" for "Text 2" and list of books for "courses".
Is there any way to pass values to directive like passing values to a function?