show a $resource object on the page, in fact it's a promise mode