alexcrack / angular-ui-notification

Angular.js service providing simple notifications using Bootstrap 3 styles with css transitions for animating
MIT License
536 stars 169 forks source link

Changed success/error methods to then/catch #102

Closed smilasek closed 7 years ago

smilasek commented 7 years ago

Changed methods success/error into then/catch to reflect bower-angular changes.

In latest release of angular 1.5.9 success/error methods has been removed, which cause that angular-ui-notification module is broken because of the following error:

TypeError: undefined is not a constructor (evaluating '$http.get(args.template,{cache: $templateCache}).success') (line 61)

edgaraskazlauskas commented 7 years ago

Did you test this? It doesn't seem to work.

alexcrack commented 7 years ago

Fixed by merging #108