angular-spotify icon indicating copy to clipboard operation
angular-spotify copied to clipboard

Revise deprecated success & error to then & catch

Open techmsi opened this issue 8 years ago • 1 comments

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

techmsi avatar Jan 05 '17 18:01 techmsi

Coverage Status

Coverage remained the same at 93.407% when pulling 861e458465a1829d181ee3f7a1e0160ad1d2dd90 on techmsi:patch-1 into 4301169bb4ebd0fcf1c2c86093a2ff620b503f24 on eddiemoore:master.

coveralls avatar Jan 05 '17 18:01 coveralls