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

Closes #8948
Closes #9069