How can one do this?
I've provided a Fiddle to demonstrate my problem: http://jsfiddle.net/FCAJD/
myApp.directive('tabs', function() {
return {
restrict: 'E',
replace: true,
transclude: true,
template: '<ul ng-transclude></ul>'
}
});
myApp.directive('tab', function() {
return {
restrict: 'E',
replace: true,
template: '<li>test</li>'
}
});
And the html:
<div ng-controller="MyCtrl">
<tabs>
<tab />
<tab />
<tab />
<tab />
</tabs>
</div>
Essentially, I want "test" to show up multiple times