I need use template from html file.
So I added script where the id is path to my html file.
<script type="text/ng-template" id="app/directives/userAvatarTooltip.html"><script>
and get template
var template = $templateCache.get('app/directives/userAvatarTooltip.html');
return template;
but template is empty.
p.s If I add template inside script tag it is works.
Adding via the $templateCache service:
To retrieve the template later, simply use it in your HTML:
or get it via Javascript: