Browse Source

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.
pull/3779/head
Merdan Gochmuradov 6 years ago
committed by GitHub
parent
commit
2f3df07f8b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      docs/en/Tutorials/Part-1.md

1
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.

Loading…
Cancel
Save