I have an array where each item contains data for a specific directive. This array is initialized within a controller.
The Model
$scope.myDirectiveData =
[ { title: "First title", content: "First content" },
{ title: "Second title", content: "Second content" } ];
The Directive Template
<div class="MyDirective">
<h1>{{myDirectiveData.title}}</h1>
<p>{{myDirectiveData.content}}</p>
</div>
How should I go about implementing the directive to create an instance for each item in the array? Something like...
<MyDirective data-ng-repeat="item in myDirectiveData"></MyDirective>