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

Closes #8948