How do I include directive inside directive in angularjs?
<p>nested directive is not working because it execute as a plain html..</p>

<pre><code>//nested directive
directive("uploadinput", function(){
   .... 
})

//directive:
directive("mydirective", function(){
  return {
     restrict: "E",
     templateUrl: "partials/mydirective.html",
     scope: {data: "="}
});
</code></pre>

<p><strong>Template</strong></p>

<pre><code>&lt;div ng-repeat='i in data.model'&gt;
    &lt;uploadinput  ng-model='i.model'&gt;&lt;/uploadinput&gt; &lt;!--nested directive is not working--&gt;
&lt;/div&gt;
</code></pre>