pc035860 / angular-highlightjs

AngularJS directive for syntax highlighting with highlight.js
http://pc035860.github.io/angular-highlightjs/example/
MIT License
294 stars 53 forks source link

Fix $http usage with angular 1.6 #82

Closed clementprevot closed 7 years ago

clementprevot commented 7 years ago

$http.success and $http.error have been deprecated since a long time and are now no longer supported in the latest release of AngularJS.

So to be able to continue to use this lib with AngularJS 1.6, we should use $http.then and $http.catch instead.

pc035860 commented 7 years ago

Thanks for the PR!

clementprevot commented 7 years ago

My pleasure