mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-14 08:53:21 +08:00
fix(templateRequest): allow empty html template
allow empty html template and not throw error Closes #9581
This commit is contained in:
committed by
Vojta Jina
parent
38d12de661
commit
52ceec2229
@@ -48,10 +48,6 @@ function $TemplateRequestProvider() {
|
||||
return $http.get(tpl, httpOptions)
|
||||
.then(function(response) {
|
||||
var html = response.data;
|
||||
if (!html || html.length === 0) {
|
||||
return handleError();
|
||||
}
|
||||
|
||||
self.totalPendingRequests--;
|
||||
$templateCache.put(tpl, html);
|
||||
return html;
|
||||
|
||||
Reference in New Issue
Block a user