update ng-resource to latest angular and ionic