If I have all my templates inside index.html
, each within its own
<script type="text/ng-template" id="foo">...</script>
block, how can I ensure that Jasmine recognizes them by storing them in the $templatecache
?
Currently, Jasmine is treating all my templateUrl
values as if they were remote paths. I've checked out the karma-ng-html2js-preprocessor, but it seems to be designed for getting individual template files into the $templatecache
, rather than blocks of script.
Take a look at this plunker to see how the inline templates are loaded.