adding angular-resource