what is the "f" mean in angular promise?

Viewed 678

Recently I have been learning in Angular to develop a new project. When I use a $q or $resource to realize a ajax request

Here is the response when there is some data:

[{"number":"132412341234","type":"5","createTime":1388369479626,"updateTime":1388369479626,"kind":"devices#get","id":"52c0d6470cf2393bb3df6371"}]

Here is the response with no-data response:

[{"request":"persons/529c6a970cf2ce4b156d0f3e/devices","status":404,"error":"can't find persons records"}]

However,when I go back to my controller to get these data with promise:

var devices=DeviceResource.query({personId:1234});

response devices became:

[$promise: Object, $resolved: false]
    0: f
        $$hashKey: "00M"
        error: "can't find persons records"
        request:"persons/529c6a970cf2ce4b156d0f3e/devices"
        status: 404
        __proto__: f
    $promise: Object
    $resolved: true
    length: 1
    __proto__: Array[0]

the array[0]'s proto is "f"

what is the "f" mean? Where can I get these document?

It seems in angular $q document just some promise content.

Can anybody help me? Thx a lot...

1 Answers
Related