@rushton this is how you can do promise with ngResource