Returns cached template text or downloads it through
$http and stores it in $templateCache.
Concurrent requests for the same URL share one download. A consumer
signal cancels only its own wait; the download is aborted after
every consumer has cancelled. Calls without a signal keep the
download alive. $compile.resourceUrlPolicy validates or
rewrites the URL before lookup. HTTP failures reject; an empty
successful response is returned unchanged.
Returns cached template text or downloads it through
$httpand stores it in$templateCache. Concurrent requests for the same URL share one download. A consumer signal cancels only its own wait; the download is aborted after every consumer has cancelled. Calls without a signal keep the download alive.$compile.resourceUrlPolicyvalidates or rewrites the URL before lookup. HTTP failures reject; an empty successful response is returned unchanged.