angular-spotify
angular-spotify copied to clipboard
Revise deprecated success & error to then & catch
Problem
TypeError: $http(...).success is not a function
at NgSpotify.api (angular-spotify.js:95)
Angular
Version 1.6 & Up Deprecation Notice
The $http legacy promise methods success and error have been deprecated and will be removed in v1.6.0. Use the standard then method instead.
Solution
Revise deprecated success & error to then & catch