now using angular-resource