#308 using ngResource