Skip to content

Commit b352993

Browse files
committed
Fixed a typo.
1 parent 8ced573 commit b352993

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66

77
The data this application displays doesn't make much sense at the moment. It's a work in progress. For now, its purpose is to demonstrate how to get Angular Material Tree to work with `@ngrx/data` . It uses Angular 11 and `@ngrx/data` 10.
88

9-
One of the challenges in working with `@ngrx/data` is that it assumes what your backend API URLs are. It makes an assumption that your URLs use the singular version of the entity name for single entity routes, and plural version of entity names for collection routes. So, it will call `GET /user/1` if you want to get a single user, and `GET /users` if you want to get all the users. It also appends a trailing slash. But your backend API routes could be named differently and that might be out of your control as a frontend developer. So as soon as you start working with `@ngrx/data` you are likely to run into this problem.
9+
One of the challenges in working with `@ngrx/data` is that it assumes what your backend API URLs are. It makes an assumption that your URLs use the singular version of the entity name for single entity routes, and plural version of entity names for collection routes. So, it will call `GET /user/1` if you want to get a single user, and `GET /users/` if you want to get all the users. It also appends a trailing slash. But your backend API routes could be named differently and that might be out of your control as a frontend developer. So as soon as you start working with `@ngrx/data` you are likely to run into this problem.
1010

1111
There are a couple of similar ways to solve it, and this application shows one of them. See the `src/app/skills/skills-data.service.ts` file for it.

0 commit comments

Comments
 (0)