samuelsimoes
7/30/2014 - 1:17 AM

gistfile1.html

<!-- directive that make the partial inclusion -->
<div ng-include src="my_template.html"></div>

<!-- my_template.html -->
<div ng-controller="MyController" class="my-container">
  <strong>My template</strong>
</div>

<!-- ---- -->
<!--  or  -->
<!-- ---- -->

<!-- directive that make the partial inclusion -->
<div ng-include src="my_template.html" ng-controller="MyController" class="my-container"></div>

<!-- my_template.html -->
<strong>My template</strong>