Your problem seems to be around this:
$ http.get ('/ someUrl'). success (function ( data , status, headers, config) {
this is another return from then ,
then method for registering callbacks, and these callbacks will receive one argument - the object representing the response
In other words, you should do this:
$http.get(...).success(function(data){ console.log(data) }) $http.get(...).then(function(response){ console.log(response.data) })
And of course, the differences are in the chain, but don't seem to be related to your problem:
then()
If the chain is then() , callbacks will be executed sequentially after each of them completes, since it returns a new promise object in each chain
success() (deprecated * along with error() )
If you bind success() calls, the callbacks will be executed in parallel, because it returns the original promise object
* success and error are deprecated, see $ http docs withdrawal notification section
source share