One snippet of HTML I utilize with ng-include involves a template that is used recursively and requires a scope/controller (apologies, as I am uncertain about the appropriate term in this scenario) named "element":
<div>
<span>{{element.name}}</span>
<div ng-include="mytemplate.html" ng-repeat="element in element.children"></div>
While this setup functions effectively, the main element belongs to a controller with a different name:
<div ng-controller="MyController as control">
<div ng-howto="control.rootelement as element" ng-include="mytemplate.html"></div>
Is there a way for me to pass my root element into the template?