cgross / angular-notify

Minimalistic and extensible notification service for Angular.
http://cgross.github.io/angular-notify/demo/
MIT License
432 stars 99 forks source link

Using deprecated $http callback methods. #72

Closed angusjfw closed 7 years ago

angusjfw commented 7 years ago

The $http custom callback methods success() and error() have been removed from angular 1.6. https://github.com/angular/angular.js/commit/b54a39e2029005e0572fbd2ac0e8f6a4e5d69014

Currently I get the following error using angular-notify:

TypeError: $http.get(...).success is not a function
    at notify (webpack:///./~/angular-notify/dist/angular-notify.js?:39)

The standard then() and catch() methods are compatible with older versions so should be used instead.

This should be a minor change, I will submit a PR.

angusjfw commented 7 years ago

Closed as fixed by https://github.com/cgross/angular-notify/commit/4e6ea9524032797c3edc919d44d55afcffda465d.