docs(ngResource): Fix error in one of the code examples

Closes #8948
@caitp:
There is a more detailed explanation here: https://github.com/angular/angular.js/issues/8948
If that helps, in the same ngDoc (a few lines further down) there is the same example (twice) and the correct property name is used.