I'm trying to create a chart directive ( not interested in existing solutions ). I want to have definable templates for each bar using a sub-directive of
bartemplate. I want to iterate the
bartemplate so I thought using a template with
ng-transclude would do the trick ... instead angular threw an error.
Error: [ngTransclude:orphan] Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: <div ng-repeat="bar in bars track by $index" ng-transclude="" class="ng-scope">
So you may ask, why the transclude? I want to be able to include any element I add to the chart (ie. a label ) and not interfere with the