From 2f3df07f8bea4a8b8de5c114c5b8a3ccc1d7bcfa Mon Sep 17 00:00:00 2001 From: Merdan Gochmuradov Date: Wed, 29 Apr 2020 11:26:50 +0500 Subject: [PATCH] Explicitly define @Injectable() decoration requirement. From the documentation, it was not obvious to add `@Injectable()` decorator, So I had to do some googling to realize it. I think this change could save some time for other developers. --- docs/en/Tutorials/Part-1.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/en/Tutorials/Part-1.md b/docs/en/Tutorials/Part-1.md index 8d9d42875f..7a70c2adf8 100644 --- a/docs/en/Tutorials/Part-1.md +++ b/docs/en/Tutorials/Part-1.md @@ -970,6 +970,7 @@ export class BooksState { } ``` * We added the book property to BooksStateModel model. +* We added `@Injectable()` decorator to BookState class (Regquired for Ivy to work properly). * We added the `GetBooks` action that retrieves the books data via `BooksService` that generated via ABP CLI and patches the state. * `NGXS` requires to return the observable without subscribing it in the get function.