<script type=
"text/ng-template"
id=
"/tpl.html"
>
Content of the template.
</script>
angular.module(
‘myApp‘
, [])
.run(
function
($templateCache) {
$templateCache.put(
‘templateId.html‘
,
‘This is the content of the template‘
);
});
原文:http://www.cnblogs.com/windSamW/p/5041354.html