We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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)); });
The text was updated successfully, but these errors were encountered:
created a pull request for this #380
Sorry, something went wrong.
17d372f
No branches or pull requests
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));
});
The text was updated successfully, but these errors were encountered: