feat($templateRequest): introduce the $templateRequest service

This handy service is designed to download and cache template contents
and to throw an error when a template request fails.

BREAKING CHANGE

Angular will now throw a $compile minErr each a template fails to download
for ngView, directives and ngMessage template requests. This changes the former
behavior of silently ignoring failed HTTP requests--or when the template itself
is empty. Please ensure that all directive, ngView and ngMessage code now properly
addresses this scenario. NgInclude is uneffected from this change.
This commit is contained in:
Matias Niemelä
2014-08-12 12:40:17 -04:00
parent 3be00df495
commit a70e2833ea
11 changed files with 190 additions and 45 deletions

1
angularFiles.js vendored
View File

@@ -34,6 +34,7 @@ var angularFiles = {
'src/ng/sanitizeUri.js',
'src/ng/sce.js',
'src/ng/sniffer.js',
'src/ng/templateRequest.js',
'src/ng/timeout.js',
'src/ng/urlUtils.js',
'src/ng/window.js',