You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 2, 2025. It is now read-only.
We uprgaded Angular to 1.6.1, and this error showed:
TypeError: $http.get(...).success is not a function
It is in file angular-datatables.js on line 96
// HACK to resolve the language source manually instead of DT
// See https://github.com/l-lin/angular-datatables/issues/181
if (options.language && options.language.url) {
var languageDefer = $q.defer();
$http.get(options.language.url).success(function(language) {
languageDefer.resolve(language);
});
options.language = languageDefer.promise;
}
There is BC change in 1.6.x - $http was changed to classic then/catch notation only
Uh oh!
There was an error while loading. Please reload this page.
What versions you are using?
What's the problem?
We uprgaded Angular to 1.6.1, and this error showed:
It is in file
angular-datatables.js
on line 96There is BC change in 1.6.x - $http was changed to classic then/catch notation only
Also, there is missing
catch(...)
part in this piece of code after.success()
withlanguageDefer.reject()
. U should put it there too.Can you share your code?
Not needed
Can you make hotfix ? This can be really fast.
Thank you.
The text was updated successfully, but these errors were encountered: