So this is a promise. You need to do something like:
whatIHave.then(function(whatIWant) {
});
I highly recommend you study what a promise is (e.g. link )
If you are interested in what this is $$stateand what it is value, I’ll explain a little:
promises has $$stateand there angular saves all the callback functions that you want to call in the array pending(all those functions that you registered with .then, as I explained earlier).
It also has the status: allowed (1) and rejected (2)
, resolve reject , , , value.
, , value, ( , async).
, , promises, , whatIHave.