-
Notifications
You must be signed in to change notification settings - Fork 508
Closed
Description
The issue is with templates loader function. The success and error callback is removed with angular 1.6. Rather it has then() and catch().
$http.get(url, params).success(function (data) {
if (angular.isString(data) && data.length > 0) {
angular.forEach(angular.element(data), function (node) {
if (node.nodeName === 'SCRIPT' && node.type === 'text/ng-template') {
$templateCache.put(node.id, node.innerHTML);
}
});
}
if (angular.isUndefined(filesCache.get(url))) {
filesCache.put(url, true);
}
deferred.resolve();
}).error(function (err) {
deferred.reject(new Error('Unable to load template file "' + url + '": ' + err));
});
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels