fix(templateRequest): allow empty html template

allow empty html template and not throw error

Closes #9581
This commit is contained in:
Michal Cieplucha
2014-10-21 11:41:19 +02:00
committed by Vojta Jina
parent 38d12de661
commit 52ceec2229
4 changed files with 7 additions and 11 deletions

View File

@@ -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;